/* 252 Somalia v5.4 — one incremental appearance layer, preserves earlier theme options. */
/* Header search is a direct link to the real WordPress search archive. */
body.news252.news252-news-edition .site-header .news252-search-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
body.news252.news252-news-edition .site-header .news252-search-link:hover{color:var(--ne-h-color-hover-text)}
/* Language popover: clean iPhone-friendly surface, real links and light/dark support. */
body.news252.news252-news-edition .site-header .language-menu{z-index:110;min-width:min(258px,calc(100vw - 30px));padding:7px;border-radius:16px;background:#fff;color:#14263e;box-shadow:0 18px 55px rgba(5,21,43,.22);border:1px solid #dbe3ee;animation:news252-pop-in .23s cubic-bezier(.2,.75,.25,1) both;transform-origin:top right;}
body.news252.news252-news-edition .site-header .news252-language-heading{font-size:12px;font-weight:800;letter-spacing:.025em;padding:9px 13px 10px;color:#263b56;border-bottom:1px solid #e8edf4;margin-bottom:3px}
body.news252.news252-news-edition .site-header .news252-language-heading span{font-weight:500;color:#657387}
body.news252.news252-news-edition .site-header .language-menu a,body.news252.news252-news-edition .site-header .language-menu .language-disabled{display:flex;gap:12px;align-items:center;min-height:47px;margin:2px 0;padding:9px 12px;border-radius:10px;color:#152941;font-size:15px;line-height:1.35;}
body.news252.news252-news-edition .site-header .language-menu a[aria-current="true"]{background:#fff3ca;color:#14283e;font-weight:800}
body.news252.news252-news-edition .site-header .language-menu a:hover{background:#eef3fa;color:#162b45}
body.news252.news252-news-edition .site-header .language-menu .language-disabled{color:#66778d;cursor:default}
body.news252.news252-news-edition .site-header .language-menu .news252-menu-flag{display:inline-flex;padding:0;font-size:23px}
:root[data-news252-theme="dark"] body.news252.news252-news-edition .site-header .language-menu{background:#1b283b;color:#f5f7fa;border-color:#40516a}
:root[data-news252-theme="dark"] body.news252.news252-news-edition .site-header .language-menu a, :root[data-news252-theme="dark"] body.news252.news252-news-edition .site-header .news252-language-heading{color:#f2f5fb}
:root[data-news252-theme="dark"] body.news252.news252-news-edition .site-header .language-menu a[aria-current="true"]{background:#3e3d2c;color:#ffdf78}
:root[data-news252-theme="dark"] body.news252.news252-news-edition .site-header .language-menu a:hover{background:#31425e}
:root[data-news252-theme="dark"] body.news252.news252-news-edition .site-header .language-menu .language-disabled{color:#b9c4d4}
@keyframes news252-pop-in{0%{opacity:0;transform:translateY(-10px) scale(.97)}100%{opacity:1;transform:translateY(0) scale(1)}}
/* Smooth mobile navigation with contrast and accessible nested menu buttons. */
body.news252.news252-news-edition .main-nav .news252-submenu-toggle{display:none}
@media(max-width:959px){
 body.news252.news252-news-edition .site-header .main-nav{background:var(--ne-h-color-nav,#0a2140)!important;border-top:2px solid #e9b93e;border-radius:0 0 18px 18px;box-shadow:0 24px 55px rgba(2,14,30,.28);padding-inline:18px;transition:max-height .37s cubic-bezier(.25,.75,.15,1),opacity .25s ease,visibility .25s ease,transform .32s cubic-bezier(.25,.75,.15,1);transform:translateY(-7px);overscroll-behavior:contain;}
 body.news252.news252-news-edition .site-header .main-nav.is-open{transform:translateY(0);max-height:min(80dvh,700px);}
 body.news252.news252-news-edition .site-header .main-nav .primary-links{padding:14px 0 20px;gap:0;}
 body.news252.news252-news-edition .site-header .main-nav .primary-links>li{position:relative;border-bottom:1px solid rgba(230,237,247,.14);width:100%;}
 body.news252.news252-news-edition .site-header .main-nav .primary-links>li>a{min-height:52px;border-radius:0;padding:12px 44px 12px 8px;font-size:clamp(15px,3.7vw,18px);line-height:1.35;color:var(--ne-h-color-nav-text,#fff)!important;white-space:normal;}
 body.news252.news252-news-edition .site-header .main-nav .primary-links>li>a:hover,body.news252.news252-news-edition .site-header .main-nav .primary-links>li>a:focus-visible{background:rgba(255,255,255,.075)}
 body.news252.news252-news-edition .main-nav .news252-submenu-toggle{display:grid;place-items:center;position:absolute;right:2px;top:4px;width:44px;height:44px;color:var(--ne-h-color-nav-text,#fff);background:transparent;border:0;border-radius:10px;font-size:27px;font-weight:500;line-height:1;}
 body.news252.news252-news-edition .site-header .main-nav .primary-links li.menu-item-has-children>.sub-menu,body.news252.news252-news-edition .site-header .main-nav .primary-links li.menu-item-has-children:hover>.sub-menu,body.news252.news252-news-edition .site-header .main-nav .primary-links li.menu-item-has-children:focus-within>.sub-menu{display:none!important;}
 body.news252.news252-news-edition .site-header .main-nav .primary-links li.menu-item-has-children.news252-submenu-open>.sub-menu{display:block!important;animation:news252-submenu-slide .23s ease-out both;background:rgba(255,255,255,.055);border-radius:12px;padding:6px 6px 10px 10px;margin:0 0 10px 4px;}
 body.news252.news252-news-edition .site-header .main-nav .sub-menu a{display:block;color:var(--ne-h-color-nav-text,#fff)!important;padding:13px 8px;min-height:44px;border-bottom:1px solid rgba(255,255,255,.08)}
}
@keyframes news252-submenu-slide{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
/* Search archive, shares existing WordPress article cards; no indexable duplicate posts. */
body.news252-news-edition .news252-search-archive{padding-block:24px 54px;}
body.news252-news-edition .news252-search-header{padding:clamp(18px,3vw,32px);border:1px solid var(--ne-border,#dfe6ef);border-radius:17px;background:var(--ne-panel,#f4f7fb);margin-bottom:30px;}
body.news252-news-edition .news252-search-header h1{font-family:system-ui,-apple-system,sans-serif;font-size:clamp(25px,4vw,39px);font-weight:850;line-height:1.2;margin:8px 0 9px;}
body.news252-news-edition .news252-search-header p{color:var(--ne-muted,#65788a);margin:0 0 19px;overflow-wrap:anywhere;}
body.news252-news-edition .news252-search-kicker{color:#a97911;font-size:12px;font-weight:850;letter-spacing:.08em;}
body.news252-news-edition .news252-search-archive .search-form{max-width:900px;}
body.news252-news-edition .news252-search-archive .search-field{font-size:16px;background:#fff;color:#10263e;}
body.news252-news-edition .news252-search-count{font-weight:750;}
body.news252-news-edition .news252-search-empty{padding:25px;border:1px solid #d9e3ef;border-radius:12px;}
/* Curated Somalia conversation section: clearly marked as editorial, not popularity measurement. */
body.news252-news-edition .news252-trending{margin:10px 0 32px;}
body.news252-news-edition .news252-trending-note{font-size:12px;color:var(--ne-muted,#68788b);font-weight:650;white-space:nowrap;}
body.news252-news-edition .news252-trending-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
body.news252-news-edition .news252-trend-card{min-width:0;background:var(--ne-panel,#fff);border:1px solid var(--ne-border,#dce5ef);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;}
body.news252-news-edition .news252-trend-photo{display:block;aspect-ratio:16/10;background:#e2e8f0;overflow:hidden;}
body.news252-news-edition .news252-trend-photo img{width:100%;height:100%;object-fit:cover;display:block;}
body.news252-news-edition .news252-trend-copy{padding:11px 11px 14px;flex:1;}
body.news252-news-edition .news252-trend-number{font-size:12px;font-weight:900;color:#b48522;letter-spacing:.08em;}
body.news252-news-edition .news252-trend-card h3{font-size:14px;line-height:1.36;margin:6px 0 10px;font-weight:800;overflow-wrap:anywhere;}
body.news252-news-edition .news252-trend-card h3 a:hover{color:#b5841c;}
body.news252-news-edition .news252-trend-card time{font-size:11px;color:var(--ne-muted,#68788b);}
/* Additional widget news feeds are optional and configurable through Appearance > Widgets. */
body.news252-news-edition .news252-home-feeds{margin:34px 0;}
body.news252-news-edition .news252-home-feed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
body.news252-news-edition .news252-feed-widget{min-width:0;background:var(--ne-panel,#fff);border:1px solid var(--ne-border,#dce5ef);border-radius:13px;padding:16px;}
body.news252-news-edition .news252-feed-widget-title{font-size:17px;margin:0 0 10px;line-height:1.35;}
body.news252-news-edition .news252-feed-links{padding:0;margin:0;list-style:none;}
body.news252-news-edition .news252-feed-links li{list-style:none;padding:10px 0;border-top:1px solid var(--ne-border,#dce5ef);}
body.news252-news-edition .news252-feed-links a{display:flex;align-items:center;gap:12px;text-decoration:none;}
body.news252-news-edition .news252-feed-thumb{width:80px;height:60px;object-fit:cover;border-radius:8px;flex:none;}
body.news252-news-edition .news252-feed-links strong{display:block;font-size:14px;line-height:1.4;}
body.news252-news-edition .news252-feed-links small{display:block;color:var(--ne-muted,#68788b);font-size:11px;margin-top:3px;}
body.news252-news-edition .news252-feed-widget a{overflow-wrap:anywhere;}
/* Reusable safe Gutenberg article patterns: normal post content, not separate HTML files. */
body.news252-news-edition .ne-article-body .news252-story-context{padding:18px 20px;border-inline-start:4px solid #d9a426;background:var(--ne-panel,#f4f7fb);border-radius:9px;margin:24px 0;}
body.news252-news-edition .ne-article-body .news252-story-context h3{margin:0 0 10px;font-size:1.12em;}
body.news252-news-edition .ne-article-body .news252-story-context p:last-child{margin-bottom:0;}
/* Homepage template presets: only affect layout, never post content or URLs. */
@media(min-width:960px){
 body.news252-home-layout-compact .ne-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
 body.news252-home-layout-headlines .ne-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 body.news252-home-layout-headlines .ne-card-grid>.ne-story--card{display:grid;grid-template-columns:140px minmax(0,1fr);}
 body.news252-home-layout-headlines .ne-card-grid>.ne-story--card .ne-story__image{height:100%;min-height:115px;aspect-ratio:auto;}
}
@media(max-width:960px){
 body.news252-news-edition .news252-trending-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 body.news252-news-edition .news252-home-feed-grid{grid-template-columns:1fr;}
}
@media(max-width:560px){
 body.news252-news-edition .news252-trending-grid{grid-template-columns:1fr;gap:10px;}
 body.news252-news-edition .news252-trend-card{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:stretch;min-height:100px;}
 body.news252-news-edition .news252-trend-photo{aspect-ratio:auto;height:100%;min-height:100px;}
 body.news252-news-edition .news252-trend-copy{padding:8px 11px;}
 body.news252-news-edition .news252-trend-card h3{font-size:14px;margin:3px 0 5px;}
 body.news252-news-edition .news252-search-archive .search-form{flex-direction:column;}
 body.news252-news-edition .news252-search-archive .search-button{min-height:46px;}
}
@media(prefers-reduced-motion:reduce){
 body.news252.news252-news-edition .site-header .language-menu,body.news252.news252-news-edition .main-nav,body.news252.news252-news-edition .main-nav .sub-menu{animation:none!important;transition:none!important;}
}
