/*
Theme Name: SAMA News
Theme URI: https://somaya.news/
Author: SAMA ICT
Author URI: https://somaya.support/
Description: قالب تحريري إخباري عربي مخصص لـ SAMA NEWS. سريع، متجاوب، RTL-first، متوافق مع Gutenberg وRank Math، ويحتوي على نقاط تكامل للإعلانات والعاجل والفيديو والوثائقيات والتغطية الحية وذكاء الجمهور والترندات والتوصيات المحلية ونظام استقبال نماذج SAMA NEWS وواجهة تجربة القارئ الذكية المرتبطة بمحرك SAMA NEWS AI Engine.
Version: 1.6.3.3
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: sama-news
Domain Path: /languages
License: Proprietary
Tags: news, rtl-language-support, block-styles, custom-logo, custom-menu, featured-images, threaded-comments
*/

:root {
  --sama-red: #ff0000;
  --sama-red-dark: #c90000;
  --sama-ink: #111111;
  --sama-text: #252525;
  --sama-muted: #666666;
  --sama-border: #e5e5e5;
  --sama-surface: #ffffff;
  --sama-surface-soft: #f6f6f6;
  --sama-surface-deep: #ececec;
  --sama-shadow: 0 12px 32px rgba(0,0,0,.08);
  --sama-radius: 14px;
  --sama-max: 1280px;
  --sama-reading: 760px;
  --sama-header-height: 72px;
  --sama-font: Tahoma, Arial, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --sama-ink: #f5f5f5;
  --sama-text: #e6e6e6;
  --sama-muted: #a9a9a9;
  --sama-border: #2b2b2b;
  --sama-surface: #0e0e0e;
  --sama-surface-soft: #171717;
  --sama-surface-deep: #202020;
  --sama-shadow: 0 12px 32px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sama-surface);
  color: var(--sama-text);
  font-family: var(--sama-font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[data-theme="dark"] body { background:var(--sama-surface); color:var(--sama-text); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sama-red); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
body.sama-modal-open { overflow:hidden; }

.sama-container { width: min(calc(100% - 32px), var(--sama-max)); margin-inline: auto; }
.sama-narrow { width: min(calc(100% - 32px), var(--sama-reading)); margin-inline: auto; }
.sama-visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.skip-link { position: fixed; inset-inline-start: 12px; top: 12px; z-index: 99999; background: var(--sama-ink); color:#fff; padding:10px 14px; transform: translateY(-150%); border-radius:8px; }
.skip-link:focus { transform: none; }

/* Utility */
.sama-kicker { color: var(--sama-red); font-weight: 800; font-size: .86rem; letter-spacing: .02em; }
.sama-meta { display:flex; flex-wrap:wrap; gap:8px 14px; color:var(--sama-muted); font-size:.9rem; }
.sama-chip { display:inline-flex; align-items:center; min-height:28px; padding:3px 9px; border-radius:999px; background:var(--sama-surface-soft); color:var(--sama-muted); font-size:.78rem; font-weight:700; }
.sama-section { padding-block: 34px; }
.sama-section + .sama-section { border-top:1px solid var(--sama-border); }
.sama-section-head { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:20px; border-top:4px solid var(--sama-red); padding-top:12px; }
.sama-section-title { margin:0; font-size:clamp(1.3rem, 2.2vw, 2rem); line-height:1.25; color:var(--sama-ink); }
.sama-section-link { color:var(--sama-red); font-size:.9rem; font-weight:800; white-space:nowrap; }
.sama-empty { padding:48px 0; text-align:center; color:var(--sama-muted); }
.sama-muted { color:var(--sama-muted); }

/* Topbar */
.sama-topbar { background:var(--sama-ink); color:var(--sama-surface); font-size:.78rem; }
html[data-theme="dark"] .sama-topbar { background:#000; color:#fff; }
.sama-topbar-inner { min-height:36px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.sama-topbar-links { display:flex; gap:14px; align-items:center; }
.sama-topbar a:hover { color:#fff; text-decoration:underline; }

/* Header */
.site-header { position:sticky; top:0; z-index:1000; background:var(--sama-surface); background:color-mix(in srgb, var(--sama-surface) 94%, transparent); backdrop-filter:blur(14px); border-bottom:1px solid var(--sama-border); }
.sama-main-header { min-height:var(--sama-header-height); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:18px; }
.sama-brand { display:flex; align-items:center; justify-content:center; border-radius:8px; }
html[data-theme="dark"] .sama-brand { background:#fff; padding:4px 10px; }
.sama-brand img { width:min(340px, 35vw); max-height:64px; object-fit:contain; }
.sama-header-actions { justify-self:end; display:flex; align-items:center; gap:8px; }
.sama-header-start { justify-self:start; display:flex; align-items:center; gap:8px; }
.sama-icon-btn { width:42px; height:42px; border:1px solid var(--sama-border); background:var(--sama-surface); color:var(--sama-ink); border-radius:999px; display:inline-grid; place-items:center; transition:.18s ease; }
.sama-icon-btn:hover { border-color:var(--sama-red); color:var(--sama-red); transform:translateY(-1px); }
.sama-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }

.sama-nav-wrap { border-top:1px solid var(--sama-border); background:var(--sama-surface); }
.sama-primary-nav { display:flex; align-items:center; justify-content:center; min-height:48px; overflow:auto; scrollbar-width:none; }
.sama-primary-nav::-webkit-scrollbar { display:none; }
.sama-primary-nav ul { margin:0; padding:0; list-style:none; display:flex; align-items:center; gap:4px; }
.sama-primary-nav a { display:block; padding:10px 12px; font-size:.92rem; font-weight:800; border-radius:8px; white-space:nowrap; }
.sama-primary-nav .current-menu-item > a,
.sama-primary-nav a:hover { background:var(--sama-surface-soft); color:var(--sama-red); }

/* Breaking */
.sama-breaking { border-bottom:1px solid var(--sama-border); background:var(--sama-surface); }
.sama-breaking-inner { min-height:44px; display:flex; align-items:center; gap:12px; overflow:hidden; }
.sama-breaking-label { flex:0 0 auto; background:var(--sama-red); color:#fff; font-weight:900; font-size:.8rem; padding:6px 10px; border-radius:6px; }
.sama-breaking-content { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:.88rem; font-weight:700; }

/* Live / breaking newsroom rails */
.sama-breaking-fallback { display:flex; align-items:center; gap:20px; min-width:0; overflow:hidden; }
.sama-breaking-fallback a { display:inline-flex; align-items:center; gap:8px; min-width:0; flex:0 1 auto; }
.sama-breaking-fallback a + a::before { content:"•"; color:var(--sama-red); margin-inline-end:10px; }
.sama-breaking-fallback time { color:var(--sama-red); font-size:.75rem; font-weight:900; }
.sama-breaking-fallback span { overflow:hidden; text-overflow:ellipsis; }
.sama-live-strip { border-bottom:1px solid var(--sama-border); background:var(--sama-surface-soft); }
.sama-live-strip-inner { display:flex; align-items:stretch; gap:16px; min-height:54px; }
.sama-live-strip-label { flex:0 0 auto; display:flex; align-items:center; gap:8px; color:var(--sama-red); font-weight:900; }
.sama-live-strip-items { display:flex; align-items:stretch; gap:0; min-width:0; overflow:auto; scrollbar-width:none; }
.sama-live-strip-items::-webkit-scrollbar { display:none; }
.sama-live-strip-item { display:flex; align-items:center; gap:8px; padding:0 18px; border-inline-start:1px solid var(--sama-border); min-width:min(440px, 72vw); font-weight:800; font-size:.86rem; }
.sama-live-strip-item time { color:var(--sama-red); font-size:.75rem; flex:0 0 auto; }
.sama-live-dot { width:9px; height:9px; border-radius:50%; background:var(--sama-red); display:inline-block; box-shadow:0 0 0 0 rgba(255,0,0,.55); animation:sama-live-pulse 1.8s infinite; }
@keyframes sama-live-pulse { 0% { box-shadow:0 0 0 0 rgba(255,0,0,.55); } 70% { box-shadow:0 0 0 9px rgba(255,0,0,0); } 100% { box-shadow:0 0 0 0 rgba(255,0,0,0); } }
.sama-live-badge { display:flex; align-items:center; gap:9px; margin-bottom:12px; color:var(--sama-red); font-weight:900; }
.sama-live-badge time { color:var(--sama-muted); font-size:.8rem; font-weight:700; }
.sama-live-timeline { margin-top:6px; margin-bottom:30px; }
.sama-live-timeline-head { margin-bottom:12px; }
.sama-live-timeline-content { border:1px solid var(--sama-border); border-radius:12px; padding:18px; background:var(--sama-surface-soft); overflow:hidden; }
.sama-live-update { border-radius:8px; }

/* Search Overlay */
.sama-search-overlay { position:fixed; inset:0; z-index:9999; background:var(--sama-surface); background:color-mix(in srgb, var(--sama-surface) 96%, transparent); backdrop-filter:blur(20px); display:none; }
.sama-search-overlay.is-open { display:block; }
.sama-search-shell { width:min(760px, calc(100% - 32px)); margin:12vh auto 0; }
.sama-search-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.sama-search-title { font-size:clamp(1.5rem, 3vw, 2.5rem); margin:0; color:var(--sama-ink); }
.sama-search-form { display:flex; gap:10px; }
.sama-search-form input[type="search"] { width:100%; height:58px; border:2px solid var(--sama-border); background:var(--sama-surface); color:var(--sama-ink); border-radius:12px; padding:0 18px; outline:0; font-size:1.05rem; }
.sama-search-form input[type="search"]:focus { border-color:var(--sama-red); }
.sama-search-form button { border:0; background:var(--sama-red); color:#fff; padding:0 22px; border-radius:12px; font-weight:900; }

/* Hero */
.sama-hero { padding:28px 0 38px; }
.sama-hero-grid { display:grid; grid-template-columns:minmax(0, 1.55fr) minmax(300px, .75fr); gap:24px; }
.sama-lead { position:relative; min-height:520px; overflow:hidden; border-radius:var(--sama-radius); background:var(--sama-surface-soft); box-shadow:var(--sama-shadow); }
.sama-lead img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.sama-lead::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 28%, rgba(0,0,0,.82) 100%); }
.sama-lead-content { position:absolute; z-index:2; inset-inline:28px; bottom:26px; color:#fff; }
.sama-lead-title { margin:6px 0 10px; font-size:clamp(1.75rem, 3.8vw, 3.3rem); line-height:1.18; max-width:900px; }
.sama-lead-title, .sama-lead-title a { color:#fff; }
.sama-lead-excerpt { margin:0; max-width:760px; color:rgba(255,255,255,.9); }
.sama-lead .sama-kicker { color:#fff; display:inline-flex; background:var(--sama-red); padding:4px 9px; border-radius:5px; }
.sama-hero-side { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sama-hero-side .sama-card { grid-column:span 1; }

/* Cards */
.sama-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:22px; }
.sama-grid-3 { grid-template-columns:repeat(3, minmax(0,1fr)); }
.sama-card { min-width:0; }
.sama-card-thumb { aspect-ratio:16/10; overflow:hidden; border-radius:10px; background:var(--sama-surface-soft); margin-bottom:12px; }
.sama-card-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.sama-card:hover .sama-card-thumb img { transform:scale(1.025); }
.sama-card-title { margin:6px 0 8px; color:var(--sama-ink); font-size:1.05rem; line-height:1.45; font-weight:900; }
.sama-card-excerpt { color:var(--sama-muted); margin:0; font-size:.9rem; }
.sama-card .sama-meta { margin-top:8px; font-size:.78rem; }

/* List feed */
.sama-content-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:36px; align-items:start; }
.sama-feed { display:flex; flex-direction:column; }
.sama-list-card { display:grid; grid-template-columns:260px minmax(0,1fr); gap:20px; padding:20px 0; border-bottom:1px solid var(--sama-border); }
.sama-list-thumb { aspect-ratio:16/10; overflow:hidden; border-radius:10px; background:var(--sama-surface-soft); }
.sama-list-thumb img { width:100%; height:100%; object-fit:cover; }
.sama-list-title { margin:5px 0 8px; color:var(--sama-ink); line-height:1.4; font-size:1.25rem; }
.sama-list-excerpt { margin:0 0 8px; color:var(--sama-muted); }

/* Trending */
.sama-trending { position:sticky; top:calc(var(--sama-header-height) + 74px); border:1px solid var(--sama-border); background:var(--sama-surface); border-radius:12px; padding:18px; }
.sama-trending h2 { margin:0 0 14px; font-size:1.1rem; color:var(--sama-ink); border-top:4px solid var(--sama-red); padding-top:10px; }
.sama-trending-list { list-style:none; padding:0; margin:0; counter-reset:popular; }
.sama-trending-list li { counter-increment:popular; display:grid; grid-template-columns:40px 1fr; gap:10px; padding:12px 0; border-bottom:1px solid var(--sama-border); }
.sama-trending-list li:last-child { border-bottom:0; }
.sama-trending-list li::before { content:counter(popular, decimal-leading-zero); color:var(--sama-red); font-weight:900; font-size:1.3rem; line-height:1; }
.sama-trending-list a { font-size:.9rem; line-height:1.5; font-weight:800; }
.sama-trending-item { min-width:0; }
.sama-trending-views { display:block; margin-top:4px; color:var(--sama-muted); font-size:.7rem; font-weight:700; }
.sama-trending-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin:0 0 8px; padding:4px; background:var(--sama-surface-soft); border-radius:9px; }
.sama-trending-tabs button { border:0; background:transparent; color:var(--sama-muted); min-height:34px; border-radius:7px; font-size:.76rem; font-weight:900; }
.sama-trending-tabs button[aria-selected="true"] { background:var(--sama-surface); color:var(--sama-red); box-shadow:0 1px 5px rgba(0,0,0,.08); }
.sama-trending-panel[hidden] { display:none!important; }

/* Audience Intelligence — homepage trend rail */
.sama-home-trending { background:var(--sama-surface-soft); }
.sama-intelligence-note { color:var(--sama-muted); font-size:.75rem; font-weight:700; text-align:end; }
.sama-home-trending-grid { list-style:none; counter-reset:sama-home-trend; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border:1px solid var(--sama-border); border-radius:12px; overflow:hidden; background:var(--sama-surface); }
.sama-home-trending-grid li { counter-increment:sama-home-trend; display:flex; gap:12px; min-width:0; padding:18px; border-inline-start:1px solid var(--sama-border); }
.sama-home-trending-grid li:first-child { border-inline-start:0; }
.sama-home-trending-rank::before { content:counter(sama-home-trend, decimal-leading-zero); color:var(--sama-red); font-size:1.45rem; line-height:1; font-weight:900; }
.sama-home-trending-title { display:block; color:var(--sama-ink); font-size:.88rem; line-height:1.55; font-weight:900; }
.sama-home-trending-title:hover { color:var(--sama-red); }

/* Ad slots */
.sama-ad-slot { width:100%; margin:22px auto; text-align:center; overflow:hidden; }
.sama-ad-slot:empty { display:none; }
.sama-ad-slot-label { color:var(--sama-muted); font-size:.68rem; margin-bottom:4px; }
.sama-ad-slot--mobile_sticky { display:none; }

/* Archive */
.sama-page-head { padding:34px 0 18px; border-bottom:1px solid var(--sama-border); }
.sama-page-title { margin:0; color:var(--sama-ink); font-size:clamp(2rem, 4vw, 3.4rem); line-height:1.2; }
.sama-page-description { color:var(--sama-muted); max-width:760px; }
.sama-pagination { margin:34px 0; }
.sama-pagination .nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.sama-pagination .page-numbers { min-width:42px; height:42px; padding:0 12px; border:1px solid var(--sama-border); border-radius:8px; display:inline-grid; place-items:center; font-weight:800; }
.sama-pagination .current, .sama-pagination a:hover { background:var(--sama-red); color:#fff; border-color:var(--sama-red); }

/* Article */
.sama-article-header { padding:40px 0 24px; }
.sama-article-title { margin:8px 0 18px; font-size:clamp(2rem, 5.2vw, 4.6rem); line-height:1.15; letter-spacing:-.02em; color:var(--sama-ink); }
.sama-article-deck { margin:0 0 18px; color:var(--sama-muted); font-size:clamp(1.05rem, 1.8vw, 1.35rem); line-height:1.65; }
.sama-author-row { display:flex; align-items:center; gap:12px; margin-top:18px; }
.sama-author-row img { border-radius:999px; }
.sama-article-media { width:min(calc(100% - 32px), var(--sama-max)); margin:0 auto 26px; }
.sama-article-media img { width:100%; max-height:760px; object-fit:cover; border-radius:12px; }
.sama-caption { margin:7px 0 0; color:var(--sama-muted); font-size:.78rem; }
.sama-article-shell { display:grid; grid-template-columns:minmax(0, var(--sama-reading)) 260px; justify-content:center; gap:42px; align-items:start; }
.sama-article-content { font-size:1.08rem; }
.sama-article-content > * { max-width:100%; }
.sama-article-content p { margin:0 0 1.45em; }
.sama-article-content h2 { color:var(--sama-ink); font-size:1.75rem; line-height:1.35; margin:1.6em 0 .65em; }
.sama-article-content h3 { color:var(--sama-ink); font-size:1.35rem; line-height:1.4; margin:1.4em 0 .6em; }
.sama-article-content a { color:var(--sama-red-dark); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.sama-article-content blockquote { margin:2em 0; padding:18px 22px; border-inline-start:5px solid var(--sama-red); background:var(--sama-surface-soft); color:var(--sama-ink); font-size:1.2rem; font-weight:700; border-radius:8px; }
.sama-article-content figure { margin:2em 0; }
.sama-article-content figcaption { color:var(--sama-muted); font-size:.8rem; margin-top:7px; }
.sama-article-content table { width:100%; border-collapse:collapse; display:block; overflow:auto; margin:2em 0; }
.sama-article-content th, .sama-article-content td { border:1px solid var(--sama-border); padding:10px 12px; text-align:start; }
.sama-article-aside { position:sticky; top:150px; min-width:0; }
.sama-share { display:flex; flex-direction:column; gap:8px; }
.sama-article-aside .sama-ad-slot { margin-top:18px; }
.sama-share-title { font-size:.75rem; color:var(--sama-muted); font-weight:800; }
.sama-share a, .sama-share button { width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--sama-border); background:var(--sama-surface); color:var(--sama-ink); border-radius:999px; }
.sama-share a:hover, .sama-share button:hover { border-color:var(--sama-red); color:var(--sama-red); }
.sama-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
.sama-tags a { border:1px solid var(--sama-border); border-radius:999px; padding:5px 10px; font-size:.8rem; color:var(--sama-muted); }
.sama-related { padding:34px 0 46px; border-top:1px solid var(--sama-border); margin-top:38px; }

/* Video */
.sama-dark-section { background:#0d0d0d; color:#fff; padding:38px 0; }
.sama-dark-section .sama-section-title, .sama-dark-section .sama-card-title { color:#fff; }
.sama-dark-section .sama-muted, .sama-dark-section .sama-card-excerpt, .sama-dark-section .sama-meta { color:#bcbcbc; }
.sama-dark-section .sama-section-head { border-top-color:var(--sama-red); border-bottom-color:#2d2d2d; }

/* Footer */
.site-footer { margin-top:48px; background:#0b0b0b; color:#fff; }
.sama-footer-main { padding:44px 0 30px; display:grid; grid-template-columns:1.15fr 2fr; gap:46px; }
.sama-footer-brand img { width:300px; max-width:100%; background:#fff; border-radius:8px; padding:7px; }
.sama-footer-tagline { color:#c8c8c8; margin:14px 0 0; max-width:440px; }
.sama-footer-menus { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.sama-footer-menus h3 { font-size:.9rem; margin:0 0 12px; color:#fff; }
.sama-footer-menus ul { list-style:none; margin:0; padding:0; }
.sama-footer-menus li { margin:7px 0; }
.sama-footer-menus a { color:#c7c7c7; font-size:.86rem; }
.sama-footer-menus a:hover { color:#fff; }
.sama-footer-bottom { border-top:1px solid #2a2a2a; padding:16px 0; display:flex; justify-content:space-between; gap:16px; color:#9d9d9d; font-size:.75rem; }

/* Mobile drawer */
.sama-mobile-drawer { position:fixed; inset:0; z-index:9998; display:none; }
.sama-mobile-drawer.is-open { display:block; }
.sama-mobile-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.45); }
.sama-mobile-panel { position:absolute; inset-block:0; inset-inline-start:0; width:min(88vw, 360px); background:var(--sama-surface); padding:22px; overflow:auto; box-shadow:var(--sama-shadow); }
.sama-mobile-panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.sama-mobile-panel img { width:210px; background:#fff; border-radius:8px; padding:5px; }
.sama-mobile-menu ul { list-style:none; margin:0; padding:0; }
.sama-mobile-menu a { display:block; padding:10px 0; border-bottom:1px solid var(--sama-border); font-weight:800; }

/* Gutenberg alignment */
.alignwide { width:min(100%, 1000px); margin-inline:auto; }
.alignfull { width:100vw; max-width:none; margin-inline:calc(50% - 50vw); }
.wp-block-image img { border-radius:10px; }
.wp-block-button__link { border-radius:8px; background:var(--sama-red); }

/* Responsive */
@media (max-width: 1100px) {
  .sama-grid { grid-template-columns:repeat(3,1fr); }
  .sama-hero-grid { grid-template-columns:1fr; }
  .sama-hero-side { grid-template-columns:repeat(4,1fr); }
  .sama-content-layout { grid-template-columns:1fr; }
  .sama-trending { position:static; }
  .sama-article-shell { grid-template-columns:minmax(0, var(--sama-reading)); }
  .sama-article-aside { position:static; order:-1; }
  .sama-share { flex-direction:row; align-items:center; margin-bottom:18px; }
}

@media (max-width: 820px) {
  .sama-ad-slot--mobile_sticky { display:block; }
  :root { --sama-header-height: 62px; }
  .sama-topbar { display:none; }
  .sama-main-header { grid-template-columns:1fr auto 1fr; min-height:62px; }
  .sama-brand img { width:180px; max-height:48px; }
  .sama-nav-wrap { display:none; }
  .sama-desktop-only { display:none!important; }
  .sama-hero { padding-top:16px; }
  .sama-lead { min-height:430px; }
  .sama-lead-content { inset-inline:18px; bottom:18px; }
  .sama-lead-excerpt { display:none; }
  .sama-hero-side { grid-template-columns:repeat(2,1fr); }
  .sama-grid, .sama-grid-3 { grid-template-columns:repeat(2,1fr); }
  .sama-footer-main { grid-template-columns:1fr; }
  .sama-footer-menus { grid-template-columns:repeat(2,1fr); }
  .sama-article-title { font-size:clamp(2rem, 8.8vw, 3.6rem); }
  .sama-home-trending-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sama-home-trending-grid li { border-bottom:1px solid var(--sama-border); }
  .sama-home-trending-grid li:nth-child(odd) { border-inline-start:0; }
}


@media (min-width:821px) {
  .sama-mobile-only { display:none!important; }
}

@media (max-width: 580px) {
  .sama-container, .sama-narrow { width:min(calc(100% - 24px), var(--sama-max)); }
  .sama-header-actions { gap:4px; }
  .sama-icon-btn { width:38px; height:38px; }
  .sama-brand img { width:145px; }
  .sama-breaking-inner { min-height:40px; gap:8px; }
  .sama-breaking-label { padding:5px 8px; }
  .sama-lead { min-height:390px; border-radius:10px; }
  .sama-lead-title { font-size:1.7rem; }
  .sama-hero-side { grid-template-columns:1fr 1fr; gap:14px; }
  .sama-grid, .sama-grid-3 { grid-template-columns:1fr 1fr; gap:16px 12px; }
  .sama-card-title { font-size:.93rem; }
  .sama-card-excerpt { display:none; }
  .sama-list-card { grid-template-columns:118px minmax(0,1fr); gap:12px; }
  .sama-list-title { font-size:1rem; margin-top:2px; }
  .sama-list-excerpt { display:none; }
  .sama-list-card .sama-meta { display:none; }
  .sama-section { padding-block:26px; }
  .sama-article-header { padding-top:26px; }
  .sama-article-media { width:100%; }
  .sama-article-media img { border-radius:0; }
  .sama-article-content { font-size:1.02rem; }
  .sama-footer-menus { grid-template-columns:1fr 1fr; gap:20px; }
  .sama-footer-bottom { flex-direction:column; }
  .sama-search-form { flex-direction:column; }
  .sama-search-form button { height:50px; }
  .sama-live-strip-inner { gap:10px; }
  .sama-live-strip-item { min-width:78vw; padding-inline:12px; }
  .sama-live-badge { align-items:flex-start; flex-wrap:wrap; }
  .sama-section-head { align-items:flex-start; }
  .sama-intelligence-note { display:none; }
  .sama-home-trending-grid { grid-template-columns:1fr; }
  .sama-home-trending-grid li { border-inline-start:0; }
}



@media print {
  .site-header, .site-footer, .sama-breaking, .sama-share, .sama-ad-slot, .sama-related { display:none!important; }
  body { color:#000; background:#fff; font-size:12pt; }
  .sama-article-shell { display:block; }
  .sama-article-content { max-width:none; }
  a { text-decoration:none!important; color:#000!important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .sama-live-dot { animation:none; }
  .sama-card-thumb img, .sama-icon-btn { transition:none; }
}

/* ==========================================================
   v1.2.1 — Homepage Editorial Grid & Legacy Visual Alignment
   Dense newsroom homepage inspired by the previous SAMA NEWS
   information architecture while preserving the new theme stack.
   ========================================================== */
:root { --sama-max: 1380px; }

/* Legacy-aligned masthead: red utility bar, white logo band, dark desk. */
.sama-topbar { background:var(--sama-red-dark); color:#fff; border-bottom:1px solid rgba(255,255,255,.18); }
html[data-theme="dark"] .sama-topbar { background:var(--sama-red-dark); color:#fff; }
.sama-topbar-inner { min-height:31px; }
.site-header { background:var(--sama-surface); backdrop-filter:none; box-shadow:0 1px 0 var(--sama-border); }
.sama-main-header { min-height:92px; }
.sama-brand img { width:min(285px, 34vw); max-height:70px; }
.sama-nav-wrap { background:#171717; border-top:0; border-bottom:3px solid var(--sama-red); }
.sama-primary-nav { min-height:46px; }
.sama-primary-nav ul { gap:0; }
.sama-primary-nav a { color:#fff; border-radius:0; padding:12px 14px; font-size:.88rem; }
.sama-primary-nav .current-menu-item > a,
.sama-primary-nav a:hover { background:var(--sama-red); color:#fff; }
html[data-theme="dark"] .sama-nav-wrap { background:#050505; }

.sama-breaking { background:var(--sama-surface); }
.sama-breaking-inner { min-height:39px; gap:0; }
.sama-breaking-label { align-self:stretch; display:flex; align-items:center; padding-inline:16px; border-radius:0; margin-inline-end:14px; }
.sama-breaking-content { font-size:.82rem; }
.sama-live-strip-inner { min-height:46px; }
.sama-live-strip-item { min-width:min(400px, 68vw); font-size:.8rem; }

/* Main newsroom grid. */
.sama-editorial-stage { padding:18px 0 12px; background:var(--sama-surface-soft); border-bottom:1px solid var(--sama-border); }
.sama-editorial-grid {
  direction:ltr;
  display:grid;
  grid-template-columns:minmax(230px,.72fr) minmax(0,1.72fr) minmax(250px,.78fr);
  grid-template-areas:"latest lead updates";
  gap:14px;
  align-items:stretch;
}
.sama-editorial-grid > * { direction:rtl; min-width:0; }
.sama-latest-rail { grid-area:latest; }
.sama-editorial-lead { grid-area:lead; min-width:0; display:flex; flex-direction:column; gap:12px; }
.sama-updates-rail { grid-area:updates; }
.sama-editorial-rail { background:var(--sama-surface); border:1px solid var(--sama-border); border-top:4px solid var(--sama-red); min-width:0; }
.sama-editorial-rail-head { min-height:39px; display:flex; align-items:center; justify-content:space-between; gap:8px; border-bottom:1px solid var(--sama-border); padding-inline-end:10px; }
.sama-editorial-rail-head h2 { display:inline-flex; align-items:center; min-height:35px; margin:0; padding:7px 12px; background:var(--sama-red-dark); color:#fff; font-size:.88rem; line-height:1.2; }
.sama-editorial-rail-list, .sama-home-update-panel { padding:0 10px; }
.sama-home-compact-story { display:grid; grid-template-columns:82px minmax(0,1fr); gap:9px; align-items:center; min-height:82px; padding:9px 0; border-bottom:1px solid var(--sama-border); }
.sama-home-compact-story:last-child { border-bottom:0; }
.sama-home-compact-thumb { width:82px; aspect-ratio:16/10; overflow:hidden; background:var(--sama-surface-deep); }
.sama-home-compact-thumb img { width:100%; height:100%; object-fit:cover; }
.sama-home-compact-body { min-width:0; }
.sama-home-compact-kicker { display:inline-block; color:var(--sama-red-dark); font-size:.67rem; font-weight:900; line-height:1.2; margin-bottom:3px; }
.sama-home-compact-story h3 { margin:0; color:var(--sama-ink); font-size:.78rem; line-height:1.45; font-weight:900; }
.sama-home-compact-meta { display:flex; flex-wrap:wrap; gap:5px 9px; color:var(--sama-muted); font-size:.62rem; margin-top:4px; }
.sama-home-update-tabs { margin:8px 9px 3px; border-radius:0; background:var(--sama-surface-soft); }
.sama-home-update-tabs button { border-radius:0; min-height:31px; font-size:.69rem; }
.sama-home-update-tabs button[aria-selected="true"] { background:var(--sama-red-dark); color:#fff; box-shadow:none; }

.sama-editorial-main-story { position:relative; min-height:390px; overflow:hidden; background:#111; box-shadow:0 1px 3px rgba(0,0,0,.14); }
.sama-editorial-main-media { position:absolute; inset:0; }
.sama-editorial-main-media img { width:100%; height:100%; object-fit:cover; }
.sama-editorial-main-story::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.02) 25%,rgba(0,0,0,.82) 100%); pointer-events:none; }
.sama-editorial-main-content { position:absolute; z-index:2; inset-inline:22px; bottom:20px; color:#fff; }
.sama-editorial-main-content .sama-kicker { display:inline-flex; background:var(--sama-red-dark); color:#fff; padding:4px 8px; border-radius:0; }
.sama-editorial-main-content h2 { margin:7px 0 7px; max-width:880px; font-size:clamp(1.65rem,2.55vw,2.7rem); line-height:1.22; }
.sama-editorial-main-content h2 a { color:#fff; }
.sama-editorial-main-content h2 a:hover { color:#fff; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
.sama-editorial-main-content p { max-width:760px; margin:0 0 7px; color:rgba(255,255,255,.9); font-size:.9rem; line-height:1.65; }
.sama-editorial-main-meta { color:rgba(255,255,255,.72); font-size:.68rem; }
.sama-editorial-secondary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.sama-editorial-secondary-story { display:grid; grid-template-columns:132px minmax(0,1fr); gap:10px; min-height:100px; padding:9px; border:1px solid var(--sama-border); background:var(--sama-surface); }
.sama-editorial-secondary-thumb { min-height:82px; background:var(--sama-surface-soft); overflow:hidden; }
.sama-editorial-secondary-thumb img { width:100%; height:100%; object-fit:cover; }
.sama-editorial-secondary-story h3 { margin:2px 0 0; color:var(--sama-ink); font-size:.88rem; line-height:1.5; font-weight:900; }

/* Five-card strip echoing the dense legacy section row. */
.sama-important-news { padding-block:22px; }
.sama-legacy-section-head { min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; border-bottom:1px solid var(--sama-border); }
.sama-legacy-section-head h2 { align-self:stretch; display:flex; align-items:center; margin:0; padding:6px 13px; background:var(--sama-red-dark); color:#fff; font-size:.98rem; line-height:1.25; }
.sama-legacy-section-head > a, .sama-legacy-section-head > span { color:var(--sama-muted); font-size:.7rem; font-weight:800; }
.sama-legacy-section-head > a:hover { color:var(--sama-red); }
.sama-important-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.sama-important-card { min-width:0; border:1px solid var(--sama-border); background:var(--sama-surface); padding-bottom:10px; }
.sama-important-thumb { display:block; aspect-ratio:16/9; overflow:hidden; background:var(--sama-surface-soft); margin-bottom:8px; }
.sama-important-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.sama-important-card:hover .sama-important-thumb img { transform:scale(1.025); }
.sama-important-card .sama-home-compact-kicker, .sama-important-card h3, .sama-important-card time { margin-inline:10px; }
.sama-important-card h3 { margin-top:4px; margin-bottom:8px; color:var(--sama-ink); font-size:.88rem; line-height:1.55; font-weight:900; }
.sama-important-card time { color:var(--sama-muted); font-size:.64rem; }

/* Denser channel sections without bringing back the old visual clutter. */
.sama-channel-section { padding-block:22px; }
.sama-channel-section + .sama-channel-section { border-top:0; }
.sama-channel-grid { gap:12px; }
.sama-channel-grid .sama-card { border:1px solid var(--sama-border); background:var(--sama-surface); padding-bottom:11px; }
.sama-channel-grid .sama-card-thumb { border-radius:0; margin-bottom:8px; }
.sama-channel-grid .sama-card > .sama-kicker,
.sama-channel-grid .sama-card > .sama-card-title,
.sama-channel-grid .sama-card > .sama-card-excerpt,
.sama-channel-grid .sama-card > .sama-meta { margin-inline:11px; }
.sama-channel-grid .sama-card-title { margin-top:4px; font-size:.95rem; line-height:1.5; }
.sama-channel-grid .sama-card-excerpt { font-size:.78rem; line-height:1.65; }
.sama-channel-grid .sama-card .sama-meta { font-size:.66rem; }
.sama-legacy-section-head--dark { border-bottom-color:#292929; }
.sama-legacy-section-head--dark > a { color:#bbb; }

/* Audience rail kept, but visually compressed to sit naturally in a news portal. */
.sama-home-trending { background:var(--sama-surface-soft); }
.sama-home-trending .sama-section-head { border-top:0; border-bottom:1px solid var(--sama-border); padding-top:0; margin-bottom:12px; }
.sama-home-trending .sama-section-title { background:var(--sama-red-dark); color:#fff; padding:7px 13px; font-size:.98rem; }
.sama-home-trending-grid { border-radius:0; }
.sama-home-trending-grid li { padding:13px; }
.sama-home-trending-title { font-size:.78rem; }

@media (max-width: 1180px) {
  .sama-editorial-grid {
    grid-template-columns:minmax(0,1fr) 310px;
    grid-template-areas:
      "lead updates"
      "latest updates";
  }
  .sama-latest-rail .sama-editorial-rail-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
  .sama-latest-rail .sama-home-compact-story:nth-child(odd) { border-inline-end:1px solid var(--sama-border); padding-inline-end:12px; }
  .sama-important-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .sama-editorial-grid {
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "lead lead"
      "latest updates";
  }
  .sama-latest-rail .sama-editorial-rail-list { display:block; }
  .sama-latest-rail .sama-home-compact-story:nth-child(odd) { border-inline-end:0; padding-inline-end:0; }
  .sama-editorial-main-story { min-height:430px; }
  .sama-important-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .sama-main-header { min-height:64px; }
  .sama-brand img { width:180px; max-height:48px; }
  .sama-editorial-stage { padding-top:12px; }
  .sama-editorial-grid {
    display:flex;
    flex-direction:column;
  }
  .sama-editorial-lead { order:1; }
  .sama-latest-rail { order:2; }
  .sama-updates-rail { order:3; }
  .sama-editorial-main-story { min-height:420px; }
  .sama-important-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 580px) {
  .sama-editorial-main-story { min-height:365px; }
  .sama-editorial-main-content { inset-inline:15px; bottom:14px; }
  .sama-editorial-main-content h2 { font-size:1.55rem; }
  .sama-editorial-main-content p { display:none; }
  .sama-editorial-secondary-grid { grid-template-columns:1fr; }
  .sama-editorial-secondary-story { grid-template-columns:118px minmax(0,1fr); }
  .sama-home-compact-story { grid-template-columns:92px minmax(0,1fr); min-height:88px; }
  .sama-home-compact-thumb { width:92px; }
  .sama-important-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .sama-important-card h3 { font-size:.8rem; }
  .sama-legacy-section-head { align-items:stretch; }
  .sama-legacy-section-head > a, .sama-legacy-section-head > span { align-self:center; }
}

/* v1.2.1.1 — Unified lower-homepage editorial cards */
.sama-home-card-section { padding-block:22px; }
.sama-home-card-section + .sama-home-card-section { border-top:0; }

/* ==========================================================
   v1.2.1.2 — Header & Footer Newsroom Experience
   Refined SAMA NEWS chrome, responsive navigation, social
   surfaces and a denser institutional footer.
   ========================================================== */

/* Header utility bar */
.sama-ui-icon { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
.sama-topbar { background:var(--sama-red-dark); color:#fff; border:0; }
.sama-topbar-inner { min-height:34px; font-size:.72rem; }
.sama-topbar-newsroom, .sama-topbar-item { display:flex; align-items:center; gap:7px; }
.sama-topbar-newsroom { min-width:0; gap:10px; }
.sama-topbar-item { white-space:nowrap; }
.sama-topbar-separator { width:1px; height:14px; background:rgba(255,255,255,.38); }
.sama-topbar-time time { font-weight:900; }
.sama-topbar-tagline { font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Main masthead is intentionally not sticky on desktop; the section desk is. */
.site-header { position:relative; top:auto; z-index:20; border:0; box-shadow:none; background:var(--sama-surface); }
body.admin-bar .site-header { top:auto; }
.sama-main-header { min-height:108px; grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr); gap:24px; }
.sama-brand { min-width:0; }
.sama-brand .custom-logo-link { display:block; }
.sama-brand img { width:min(315px,31vw); max-height:78px; object-fit:contain; }
html[data-theme="dark"] .sama-brand { background:#fff; padding:6px 13px; border-radius:6px; }
.sama-header-start, .sama-header-actions { min-width:0; }
.sama-header-social-wrap { display:flex; align-items:center; gap:10px; }
.sama-header-social-label { color:var(--sama-muted); font-size:.72rem; font-weight:900; }
.sama-social-icons { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.sama-social-icons a { width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--sama-border); background:var(--sama-surface); color:var(--sama-ink); transition:border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease; }
.sama-social-icons a:hover, .sama-social-icons a:focus-visible { color:#fff; background:var(--sama-red-dark); border-color:var(--sama-red-dark); transform:translateY(-1px); outline:0; }
.sama-header-actions .sama-icon-btn { border-radius:5px; width:40px; height:40px; background:var(--sama-surface); }
.sama-header-actions .sama-icon-btn:hover, .sama-header-actions .sama-icon-btn:focus-visible { background:var(--sama-red-dark); border-color:var(--sama-red-dark); color:#fff; outline:0; }

/* Optional advertising integration between the logo deck and section desk. */
.sama-ad-slot--header_leaderboard { width:min(calc(100% - 32px), 970px); margin:0 auto 14px; padding:8px; background:var(--sama-surface-soft); border:1px solid var(--sama-border); }
.sama-ad-slot--header_leaderboard .sama-ad-slot-label { margin-bottom:5px; }

/* Sticky section desk */
.sama-nav-wrap { position:sticky; top:0; z-index:1100; background:#151515; border:0; border-bottom:3px solid var(--sama-red); box-shadow:0 5px 16px rgba(0,0,0,.13); }
body.admin-bar .sama-nav-wrap { top:32px; }
.sama-primary-nav { min-height:48px; justify-content:flex-start; }
.sama-primary-nav ul { width:max-content; min-width:100%; justify-content:center; }
.sama-primary-nav a { min-height:45px; display:flex; align-items:center; padding:10px 15px; font-size:.88rem; letter-spacing:0; }
.sama-primary-nav .current-menu-item > a,
.sama-primary-nav .current-menu-ancestor > a,
.sama-primary-nav a:hover,
.sama-primary-nav a:focus-visible { background:var(--sama-red-dark); color:#fff; outline:0; }

/* Breaking rail */
.sama-breaking { position:relative; z-index:10; border-bottom:1px solid var(--sama-border); box-shadow:0 1px 0 rgba(0,0,0,.02); }
.sama-breaking-inner { min-height:42px; }
.sama-breaking-label { gap:7px; min-width:82px; justify-content:center; padding-inline:14px; font-size:.76rem; letter-spacing:.01em; }
.sama-breaking-dot { width:7px; height:7px; border-radius:50%; background:#fff; box-shadow:0 0 0 0 rgba(255,255,255,.45); animation:sama-breaking-pulse 1.8s infinite; }
@keyframes sama-breaking-pulse { 0% { box-shadow:0 0 0 0 rgba(255,255,255,.5); } 70% { box-shadow:0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow:0 0 0 0 rgba(255,255,255,0); } }
.sama-breaking-content { flex:1 1 auto; padding-inline-end:8px; }

/* Search becomes an editorial search sheet rather than a blank overlay. */
.sama-search-overlay { background:rgba(8,8,8,.84); backdrop-filter:blur(10px); }
.sama-search-shell { margin:14vh auto 0; background:var(--sama-surface); border-top:5px solid var(--sama-red); box-shadow:0 24px 80px rgba(0,0,0,.32); padding:26px; }
.sama-search-top { margin-bottom:18px; gap:18px; }
.sama-search-eyebrow { display:block; color:var(--sama-red); font-size:.72rem; font-weight:900; letter-spacing:.08em; margin-bottom:4px; }
.sama-search-title { font-size:clamp(1.55rem,3vw,2.35rem); }
.sama-search-close { flex:0 0 auto; border-radius:4px; font-size:1.45rem; }
.sama-search-hint { margin:12px 0 0; color:var(--sama-muted); font-size:.78rem; }
.sama-search-form input[type="search"] { border-radius:4px; height:56px; }
.sama-search-form button { border-radius:4px; min-width:96px; }

/* Mobile newsroom drawer */
.sama-mobile-panel { padding:0; width:min(90vw,390px); border-inline-end:4px solid var(--sama-red-dark); }
.sama-mobile-panel-head { min-height:76px; margin:0; padding:12px 16px; border-bottom:1px solid var(--sama-border); background:var(--sama-surface); }
.sama-mobile-logo { display:block; background:#fff; padding:4px 7px; }
.sama-mobile-panel img { width:190px; padding:0; border-radius:0; }
.sama-mobile-tagline { margin:0; padding:10px 16px; color:var(--sama-muted); background:var(--sama-surface-soft); border-bottom:1px solid var(--sama-border); font-size:.76rem; font-weight:800; }
.sama-mobile-menu { padding:8px 16px 14px; }
.sama-mobile-menu a { position:relative; padding:12px 4px; font-size:.94rem; }
.sama-mobile-menu .current-menu-item > a { color:var(--sama-red-dark); }
.sama-mobile-menu .current-menu-item > a::before { content:""; position:absolute; inset-inline-start:-16px; top:10px; bottom:10px; width:4px; background:var(--sama-red-dark); }
.sama-mobile-socials { padding:16px; border-top:1px solid var(--sama-border); background:var(--sama-surface-soft); }
.sama-mobile-socials > span { display:block; margin-bottom:9px; color:var(--sama-muted); font-size:.72rem; font-weight:900; }
.sama-social-icons--mobile a { background:var(--sama-surface); }

/* Institutional footer */
.site-footer { position:relative; margin-top:54px; background:#0b0b0d; color:#fff; }
.sama-footer-accent { height:5px; background:var(--sama-red); }
.sama-footer-newsroom { background:#151517; border-bottom:1px solid #29292d; }
.sama-footer-newsroom-inner { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.sama-footer-newsroom-brand { min-width:0; display:flex; align-items:baseline; gap:15px; }
.sama-footer-newsroom-brand strong { color:#fff; font-size:1.05rem; letter-spacing:.035em; white-space:nowrap; }
.sama-footer-newsroom-brand span { color:#b8b8bd; font-size:.82rem; }
.sama-footer-follow { display:flex; align-items:center; gap:12px; color:#b8b8bd; font-size:.75rem; font-weight:800; white-space:nowrap; }
.sama-social-icons--footer a { border-color:#35353a; background:#1c1c20; color:#fff; }
.sama-social-icons--footer a:hover, .sama-social-icons--footer a:focus-visible { background:var(--sama-red-dark); border-color:var(--sama-red-dark); }
.sama-footer-main { padding:44px 0 38px; grid-template-columns:minmax(280px,1.15fr) minmax(0,2fr); gap:58px; }
.sama-footer-brand { align-self:start; }
.sama-footer-logo-shell { display:inline-block; max-width:320px; padding:0; background:transparent; }
.sama-footer-logo-shell .custom-logo-link { display:block; }
.sama-footer-logo-shell img { width:285px; max-width:100%; height:auto; padding:0; border-radius:0; background:transparent; }
.sama-footer-description { max-width:460px; margin:17px 0 0; color:#b9b9bf; font-size:.84rem; line-height:1.9; }
.sama-footer-brand-links { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:17px; }
.sama-footer-brand-links a { display:inline-flex; align-items:center; gap:6px; color:#ddd; font-size:.76rem; font-weight:800; }
.sama-footer-brand-links a:hover { color:#fff; }
.sama-footer-brand-links .sama-ui-icon { width:15px; height:15px; }
.sama-footer-menus { grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px; }
.sama-footer-column h3 { position:relative; margin:0 0 15px; padding-bottom:10px; color:#fff; font-size:.88rem; }
.sama-footer-column h3::after { content:""; position:absolute; inset-inline-start:0; bottom:0; width:34px; height:3px; background:var(--sama-red); }
.sama-footer-menus ul { display:grid; gap:1px; }
.sama-footer-menus li { margin:0; }
.sama-footer-menus a { position:relative; display:block; padding:5px 0; color:#bdbdc2; font-size:.8rem; line-height:1.55; }
.sama-footer-menus a:hover, .sama-footer-menus a:focus-visible { color:#fff; padding-inline-start:5px; outline:0; }
.sama-footer-bottom { min-height:58px; padding:15px 0; border-top:1px solid #29292d; align-items:center; color:#8e8e94; font-size:.72rem; }
.sama-footer-bottom strong { color:#d5d5d8; }

/* Back to top */
.sama-back-to-top { position:fixed; z-index:1200; inset-inline-start:22px; bottom:22px; width:42px; height:42px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.12); background:#151517; color:#fff; opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease; box-shadow:0 8px 24px rgba(0,0,0,.2); }
.sama-back-to-top.is-visible { opacity:1; visibility:visible; transform:none; }
.sama-back-to-top:hover, .sama-back-to-top:focus-visible { background:var(--sama-red-dark); outline:0; }

@media (max-width: 900px) {
  .sama-main-header { grid-template-columns:minmax(120px,1fr) auto minmax(120px,1fr); }
  .sama-header-social-label { display:none; }
  .sama-footer-main { gap:36px; }
  .sama-footer-newsroom-inner { min-height:70px; }
}

@media (max-width: 820px) {
  body.admin-bar .sama-nav-wrap { top:0; }
  .site-header { position:sticky; top:0; z-index:1100; border-bottom:1px solid var(--sama-border); box-shadow:0 4px 18px rgba(0,0,0,.08); }
  body.admin-bar .site-header { top:46px; }
  .sama-main-header { min-height:64px; grid-template-columns:1fr auto 1fr; gap:8px; }
  .sama-brand img { width:178px; max-height:48px; }
  html[data-theme="dark"] .sama-brand { padding:3px 7px; }
  .sama-ad-slot--header_leaderboard { display:none; }
  .sama-footer-newsroom-inner { padding-block:14px; flex-direction:column; align-items:flex-start; gap:10px; }
  .sama-footer-follow { width:100%; justify-content:space-between; }
  .sama-footer-main { grid-template-columns:1fr; gap:34px; padding-top:34px; }
  .sama-footer-description { max-width:620px; }
}

@media (max-width: 580px) {
  .sama-main-header { min-height:60px; }
  .sama-brand img { width:142px; }
  .sama-header-actions .sama-icon-btn { width:37px; height:37px; }
  .sama-breaking-label { min-width:72px; padding-inline:10px; }
  .sama-search-shell { width:calc(100% - 20px); margin-top:9vh; padding:20px 16px; }
  .sama-footer-newsroom-brand { align-items:flex-start; flex-direction:column; gap:3px; }
  .sama-footer-follow { align-items:flex-start; flex-direction:column; }
  .sama-footer-menus { grid-template-columns:1fr 1fr; gap:28px 18px; }
  .sama-footer-column:last-child { grid-column:1 / -1; }
  .sama-footer-logo-shell { max-width:275px; }
  .sama-footer-bottom { align-items:flex-start; gap:5px; }
  .sama-back-to-top { inset-inline-start:12px; bottom:76px; width:40px; height:40px; }
}

@media (prefers-reduced-motion: reduce) {
  .sama-breaking-dot { animation:none; }
  .sama-social-icons a, .sama-back-to-top { transition:none; }
}

@media print {
  .sama-topbar, .sama-nav-wrap, .sama-back-to-top { display:none!important; }
}


/* v1.2.1.3 — Article split-intro + four-column category archive */
.sama-article-intro {
  display:grid;
  direction:rtl;
  grid-template-columns:minmax(0,1fr) minmax(300px,420px);
  gap:clamp(28px,4vw,58px);
  align-items:center;
  padding-block:38px 30px;
  border-bottom:1px solid var(--sama-border);
}
.sama-article-intro .sama-article-header { grid-column:1; padding:0; min-width:0; }
.sama-article-intro .sama-article-title {
  max-width:820px;
  margin:10px 0 15px;
  font-size:clamp(2rem,3.55vw,3.55rem);
  line-height:1.18;
  text-wrap:balance;
}
.sama-article-intro .sama-article-deck {
  max-width:760px;
  margin-bottom:15px;
  font-size:clamp(1rem,1.45vw,1.22rem);
  line-height:1.75;
}
.sama-article-extra-meta { margin-top:7px; }
.sama-article-intro-media {
  grid-column:2;
  width:100%;
  max-width:420px;
  margin:0;
  justify-self:end;
  align-self:center;
}
.sama-article-intro-media img {
  width:100%;
  aspect-ratio:16/10;
  height:auto;
  max-height:320px;
  object-fit:cover;
  border-radius:8px;
  background:var(--sama-surface-soft);
}
.sama-article-intro--no-media { grid-template-columns:minmax(0,900px); justify-content:start; }
.sama-article-intro--no-media .sama-article-header { max-width:900px; }
.sama-article-intro-media .sama-caption {
  margin-top:7px;
  line-height:1.55;
}

.sama-category-head { position:relative; padding-block:30px 20px; }
.sama-category-head::before {
  content:"";
  position:absolute;
  inset-inline-start:0;
  bottom:-1px;
  width:min(180px,28vw);
  height:4px;
  background:var(--sama-red);
}
.sama-category-eyebrow {
  display:block;
  margin-bottom:5px;
  color:var(--sama-red);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
}
.sama-category-section { padding-top:26px; }
.sama-category-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px 18px;
}
.sama-category-grid .sama-card {
  display:flex;
  min-width:0;
  flex-direction:column;
  padding-bottom:14px;
  border:1px solid var(--sama-border);
  background:var(--sama-surface);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sama-category-grid .sama-card:hover {
  transform:translateY(-2px);
  border-color:var(--sama-red);
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}
.sama-category-grid .sama-card-thumb {
  display:block;
  width:100%;
  margin:0 0 10px;
  border-radius:0;
  aspect-ratio:16/10;
}
.sama-category-grid .sama-card > .sama-kicker,
.sama-category-grid .sama-card > .sama-card-title,
.sama-category-grid .sama-card > .sama-card-excerpt,
.sama-category-grid .sama-card > .sama-meta {
  margin-inline:13px;
}
.sama-category-grid .sama-card-title {
  margin-top:5px;
  margin-bottom:7px;
  font-size:1rem;
  line-height:1.5;
}
.sama-category-grid .sama-card-excerpt {
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  min-height:3.15em;
  font-size:.82rem;
  line-height:1.58;
}
.sama-category-grid .sama-card .sama-meta {
  margin-top:auto;
  padding-top:10px;
  font-size:.7rem;
}

@media (max-width: 1023px) {
  .sama-article-intro { grid-template-columns:minmax(0,1fr) minmax(270px,360px); gap:30px; }
  .sama-article-intro-media { max-width:360px; }
  .sama-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .sama-article-intro {
    grid-template-columns:1fr;
    gap:20px;
    align-items:start;
    padding-block:28px 24px;
  }
  .sama-article-intro .sama-article-header,
  .sama-article-intro-media { grid-column:auto; }
  .sama-article-intro-media {
    width:min(100%,620px);
    max-width:none;
    justify-self:start;
  }
  .sama-article-intro-media img { max-height:360px; }
  .sama-article-intro .sama-article-title { font-size:clamp(1.9rem,7vw,3rem); }
  .sama-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; }
}

@media (max-width: 520px) {
  .sama-article-intro { width:min(calc(100% - 24px), var(--sama-max)); }
  .sama-article-intro-media { width:100%; }
  .sama-article-intro-media img { aspect-ratio:16/10; max-height:270px; border-radius:6px; }
  .sama-category-grid { grid-template-columns:1fr; gap:16px; }
  .sama-category-grid .sama-card { display:grid; grid-template-columns:132px minmax(0,1fr); grid-template-rows:auto auto 1fr; column-gap:12px; padding:0; }
  .sama-category-grid .sama-card-thumb { grid-column:1; grid-row:1 / 4; margin:0; height:100%; min-height:118px; aspect-ratio:auto; }
  .sama-category-grid .sama-card > .sama-kicker,
  .sama-category-grid .sama-card > .sama-card-title,
  .sama-category-grid .sama-card > .sama-card-excerpt,
  .sama-category-grid .sama-card > .sama-meta { grid-column:2; margin-inline:0 10px; }
  .sama-category-grid .sama-card > .sama-kicker { margin-top:8px; }
  .sama-category-grid .sama-card-title { font-size:.9rem; }
  .sama-category-grid .sama-card-excerpt { display:none; }
  .sama-category-grid .sama-card .sama-meta { margin-top:0; padding:0 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .sama-category-grid .sama-card { transition:none; }
}

/* ==========================================================
   v1.2.1.4 — Header Location Weather + QA hardening
   ========================================================== */
.sama-weather { min-width:0; display:flex; align-items:center; }
.sama-weather-button {
  appearance:none;
  display:inline-flex;
  min-width:0;
  align-items:center;
  gap:5px;
  margin:0;
  padding:2px 0;
  border:0;
  background:transparent;
  color:#fff;
  font:inherit;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
}
.sama-weather-button:hover,
.sama-weather-button:focus-visible { color:#fff; text-decoration:underline; outline:0; }
.sama-weather-button:disabled { cursor:wait; opacity:.78; text-decoration:none; }
.sama-weather-location-icon { width:15px; height:15px; }
.sama-weather-condition-icon { display:none; width:17px; text-align:center; font-size:.85rem; line-height:1; }
.sama-weather[data-state="ready"] .sama-weather-condition-icon,
.sama-weather[data-state="loading"] .sama-weather-condition-icon,
.sama-weather[data-state="error"] .sama-weather-condition-icon,
.sama-weather[data-state="denied"] .sama-weather-condition-icon { display:inline-block; }
.sama-weather[data-state="ready"] .sama-weather-location-icon { opacity:.8; }
.sama-weather-status { max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width: 820px) {
  /* Keep the red utility rail available on mobile for location weather. */
  .sama-topbar { display:block; }
  .sama-topbar-inner { min-height:32px; gap:10px; }
  .sama-topbar-date,
  .sama-topbar-time,
  .sama-topbar-separator { display:none; }
  .sama-topbar-newsroom { flex:0 0 auto; }
  .sama-weather-status { max-width:150px; }
  .sama-topbar-tagline { min-width:0; font-size:.68rem; }
}

@media (max-width: 520px) {
  .sama-topbar-inner { justify-content:center; }
  .sama-topbar-tagline { display:none; }
  .sama-weather-status { max-width:210px; }
}

/* ==========================================================
   v1.2.1.5 — Article Engagement Sections & Comment Experience
   Related stories and reader interaction now use the same
   newsroom section language as the homepage editorial rows.
   ========================================================== */
.sama-related--editorial {
  margin-top:38px;
  padding-block:22px;
  border-top:0;
}
.sama-related--editorial .sama-important-grid,
.sama-article-engagement .sama-important-grid { margin-top:0; }
.sama-article-engagement { padding-top:22px; }
.sama-engagement-empty {
  margin:0;
  padding:18px;
  border:1px solid var(--sama-border);
  background:var(--sama-surface-soft);
  color:var(--sama-muted);
  font-size:.85rem;
}

.sama-article-comments {
  padding-block:22px 38px;
  border-top:0;
}
.sama-comment-form-panel,
.sama-comments-list-panel {
  border:1px solid var(--sama-border);
  background:var(--sama-surface);
}
.sama-comment-form-panel { padding:clamp(18px,2.4vw,30px); }
.sama-comment-form .comment-reply-title {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
  margin:0 0 8px;
  color:var(--sama-ink);
  font-size:1.05rem;
  line-height:1.4;
}
.sama-comment-form .comment-reply-title small { font-size:.7rem; }
.sama-comment-form .comment-reply-title small a { color:var(--sama-red-dark); font-weight:900; }
.sama-comment-guidance,
.sama-comment-form .logged-in-as,
.sama-comment-form .comment-notes,
.sama-comment-form .must-log-in {
  grid-column:1 / -1;
  margin:0;
  color:var(--sama-muted);
  font-size:.78rem;
  line-height:1.7;
}
.sama-comment-form {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:0;
}
.sama-comment-form > p { margin:0; min-width:0; }
.sama-comment-form .comment-form-comment,
.sama-comment-form .comment-form-cookies-consent,
.sama-comment-form .form-submit { grid-column:1 / -1; }
.sama-comment-form label {
  display:block;
  margin-bottom:6px;
  color:var(--sama-ink);
  font-size:.76rem;
  font-weight:900;
}
.sama-comment-form input[type="text"],
.sama-comment-form input[type="email"],
.sama-comment-form input[type="url"],
.sama-comment-form textarea {
  width:100%;
  border:1px solid var(--sama-border);
  border-radius:4px;
  background:var(--sama-surface);
  color:var(--sama-text);
  font:inherit;
  outline:0;
  transition:border-color .16s ease, box-shadow .16s ease;
}
.sama-comment-form input[type="text"],
.sama-comment-form input[type="email"],
.sama-comment-form input[type="url"] { min-height:46px; padding:10px 12px; }
.sama-comment-form textarea { min-height:150px; resize:vertical; padding:12px 14px; line-height:1.75; }
.sama-comment-form input:focus,
.sama-comment-form textarea:focus {
  border-color:var(--sama-red-dark);
  box-shadow:0 0 0 3px rgba(201,0,0,.10);
}
.sama-comment-form .comment-form-cookies-consent {
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:var(--sama-muted);
  font-size:.75rem;
}
.sama-comment-form .comment-form-cookies-consent input { margin-top:4px; }
.sama-comment-form .comment-form-cookies-consent label { margin:0; color:inherit; font-weight:700; }
.sama-comment-submit {
  min-height:44px;
  padding:10px 22px;
  border:1px solid var(--sama-red-dark);
  border-radius:4px;
  background:var(--sama-red-dark);
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease, transform .16s ease;
}
.sama-comment-submit:hover,
.sama-comment-submit:focus-visible { background:var(--sama-red); border-color:var(--sama-red); outline:0; transform:translateY(-1px); }

.sama-comments-list-panel { margin-top:16px; padding:clamp(18px,2.4vw,30px); }
.sama-comments-list-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  padding-bottom:11px;
  border-bottom:1px solid var(--sama-border);
}
.sama-comments-list-head h3 { margin:0; color:var(--sama-ink); font-size:1rem; }
.sama-comments-list-head span { color:var(--sama-muted); font-size:.72rem; font-weight:800; }
.comment-list,
.comment-list .children { list-style:none; margin:0; padding:0; }
.comment-list > li + li { margin-top:12px; }
.comment-list .children { margin-top:10px; margin-inline-start:34px; }
.comment-list .comment-body {
  position:relative;
  padding:16px 18px;
  border:1px solid var(--sama-border);
  border-inline-start:3px solid var(--sama-border);
  background:var(--sama-surface-soft);
}
.comment-list .bypostauthor > .comment-body { border-inline-start-color:var(--sama-red-dark); }
.comment-list .comment-meta { margin-bottom:10px; }
.comment-list .comment-author { display:flex; align-items:center; gap:10px; color:var(--sama-ink); font-size:.84rem; }
.comment-list .comment-author .avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.comment-list .comment-author .says { display:none; }
.comment-list .comment-metadata { margin-top:3px; margin-inline-start:50px; color:var(--sama-muted); font-size:.68rem; }
.comment-list .comment-metadata a { color:inherit; }
.comment-list .comment-content { color:var(--sama-text); font-size:.9rem; line-height:1.8; }
.comment-list .comment-content p:last-child { margin-bottom:0; }
.comment-list .reply { margin-top:9px; }
.comment-list .reply a {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:4px 10px;
  border:1px solid var(--sama-border);
  color:var(--sama-red-dark);
  font-size:.7rem;
  font-weight:900;
}
.comment-list .reply a:hover,
.comment-list .reply a:focus-visible { border-color:var(--sama-red-dark); outline:0; }
.comment-navigation { margin-top:16px; }
.comment-navigation .nav-links { display:flex; justify-content:space-between; gap:12px; }
.comment-navigation a { color:var(--sama-red-dark); font-size:.78rem; font-weight:900; }

/* The explicit engagement tab must remain usable even when four tabs share a compact sidebar. */
.sama-trending-tabs { flex-wrap:wrap; }
.sama-trending-tabs button[data-sama-trend-tab="engagement"] { flex:1 1 100%; }
.sama-engagement-list .sama-trending-views { color:var(--sama-red-dark); }

@media (max-width: 820px) {
  .sama-comment-form { grid-template-columns:1fr 1fr; }
  .sama-comment-form .comment-form-url { grid-column:1 / -1; }
}
@media (max-width: 580px) {
  .sama-related--editorial { margin-top:24px; }
  .sama-comment-form { grid-template-columns:1fr; }
  .sama-comment-form .comment-form-author,
  .sama-comment-form .comment-form-email,
  .sama-comment-form .comment-form-url { grid-column:1; }
  .sama-comments-list-panel,
  .sama-comment-form-panel { padding:15px; }
  .comment-list .children { margin-inline-start:16px; }
  .comment-list .comment-body { padding:13px; }
}
@media (prefers-reduced-motion: reduce) {
  .sama-comment-submit,
  .sama-comment-form input,
  .sama-comment-form textarea { transition:none; }
}
@media print {
  .sama-article-comments,
  .sama-article-engagement { display:none!important; }
}

/* ==========================================================
   v1.2.2 — Search, Archives & Content Discovery Experience
   ========================================================== */
.sama-breadcrumbs {
  margin:0 0 14px;
  color:var(--sama-muted);
  font-size:.72rem;
  line-height:1.5;
}
.sama-breadcrumbs ol {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.sama-breadcrumbs li { display:inline-flex; align-items:center; gap:6px; min-width:0; }
.sama-breadcrumbs li + li::before { content:"/"; color:var(--sama-border); font-weight:900; }
.sama-breadcrumbs a { color:var(--sama-muted); font-weight:800; }
.sama-breadcrumbs a:hover,
.sama-breadcrumbs a:focus-visible { color:var(--sama-red-dark); outline:0; }
.sama-breadcrumbs [aria-current="page"] {
  display:inline-block;
  max-width:min(520px,58vw);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--sama-ink);
  font-weight:800;
}
.sama-article-breadcrumbs { padding-top:22px; }
.sama-article-breadcrumbs + .sama-article-intro { padding-top:12px; }

.sama-discovery-head .sama-page-description { max-width:760px; margin-top:9px; }
.sama-discovery-results { padding-top:28px; }
.sama-discovery-grid .sama-card { min-height:100%; }
.sama-card-thumb--placeholder {
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#111 0%,#252525 58%,#c90000 100%);
}
.sama-card-placeholder {
  display:flex;
  align-items:baseline;
  gap:6px;
  direction:ltr;
  color:#fff;
  letter-spacing:-.04em;
  font-size:1.1rem;
  line-height:1;
}
.sama-card-placeholder strong { font-size:1.3em; }
.sama-card-placeholder span { padding:3px 5px; background:#f00; font-weight:900; letter-spacing:0; }

.sama-search-results-head { padding-bottom:24px; }
.sama-search-result-count { margin:7px 0 0; color:var(--sama-muted); font-size:.84rem; font-weight:800; }
.sama-search-results-form { width:min(660px,100%); margin-top:18px; }
.sama-search-results-form .sama-search-form { gap:8px; }
.sama-search-results-form .sama-search-form input[type="search"] { height:48px; border-radius:4px; }
.sama-search-results-form .sama-search-form button { min-width:86px; border-radius:4px; }
.sama-search-filters {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:16px;
}
.sama-search-filters a {
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 12px;
  border:1px solid var(--sama-border);
  background:var(--sama-surface);
  color:var(--sama-muted);
  font-size:.74rem;
  font-weight:900;
}
.sama-search-filters a:hover,
.sama-search-filters a:focus-visible,
.sama-search-filters a.is-active {
  border-color:var(--sama-red-dark);
  background:var(--sama-red-dark);
  color:#fff;
  outline:0;
}

.sama-author-profile {
  display:grid;
  grid-template-columns:112px minmax(0,760px);
  gap:22px;
  align-items:center;
}
.sama-author-profile-avatar img {
  width:112px;
  height:112px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid var(--sama-surface);
  box-shadow:0 0 0 1px var(--sama-border);
}
.sama-author-profile-copy .sama-page-title { margin-bottom:6px; }
.sama-author-profile-copy .sama-page-description { margin:0; }
.sama-author-profile-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; color:var(--sama-muted); font-size:.75rem; font-weight:900; }
.sama-author-profile-meta span { padding:4px 9px; background:var(--sama-surface-soft); border:1px solid var(--sama-border); }
.sama-author-stories-head { margin-bottom:18px; }

.sama-pagination--editorial { display:flex; justify-content:center; margin:34px 0 4px; }
.sama-pagination--editorial .navigation { width:100%; }
.sama-pagination--editorial .nav-links { justify-content:center; }
.sama-pagination--editorial .page-numbers { border-radius:3px; font-size:.78rem; }
.sama-pagination--editorial .prev,
.sama-pagination--editorial .next { min-width:auto; padding-inline:15px; }

.sama-empty--editorial {
  width:min(760px,100%);
  margin-inline:auto;
  padding:38px clamp(18px,4vw,42px);
  border:1px solid var(--sama-border);
  border-top:4px solid var(--sama-red);
  background:var(--sama-surface-soft);
  text-align:center;
}
.sama-empty--editorial h2 { margin:4px 0 8px; color:var(--sama-ink); font-size:clamp(1.25rem,2.4vw,1.8rem); }
.sama-empty--editorial p { margin:0 auto; max-width:590px; }
.sama-empty-search { width:min(560px,100%); margin:18px auto 0; }
.sama-empty-search .sama-search-form input[type="search"] { height:48px; border-radius:4px; }
.sama-empty-search .sama-search-form button { border-radius:4px; }

.sama-discover-more { margin-top:8px; }
.sama-discover-more .sama-important-grid { margin-top:0; }

.sama-404-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(54px,9vw,108px);
  text-align:center;
  isolation:isolate;
}
.sama-404-code {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:-1;
  color:var(--sama-surface-soft);
  font-size:clamp(11rem,31vw,28rem);
  font-weight:900;
  line-height:.72;
  letter-spacing:-.08em;
  user-select:none;
}
.sama-404-hero .sama-page-title { margin:4px 0 8px; }
.sama-404-hero > p { max-width:620px; margin:0 auto; color:var(--sama-muted); }
.sama-404-search { width:min(620px,100%); margin:22px auto 14px; }
.sama-404-search .sama-search-form input[type="search"] { border-radius:4px; height:50px; }
.sama-404-search .sama-search-form button { border-radius:4px; }
.sama-404-home { display:inline-flex; margin-top:8px; color:var(--sama-red-dark); font-size:.8rem; font-weight:900; }

@media (max-width:820px) {
  .sama-author-profile { grid-template-columns:84px minmax(0,1fr); gap:15px; }
  .sama-author-profile-avatar img { width:84px; height:84px; }
  .sama-breadcrumbs [aria-current="page"] { max-width:62vw; }
}
@media (max-width:580px) {
  .sama-article-breadcrumbs { padding-top:14px; }
  .sama-breadcrumbs { font-size:.66rem; margin-bottom:10px; }
  .sama-search-results-form .sama-search-form,
  .sama-empty-search .sama-search-form,
  .sama-404-search .sama-search-form { flex-direction:row; }
  .sama-search-results-form .sama-search-form button,
  .sama-empty-search .sama-search-form button,
  .sama-404-search .sama-search-form button { height:auto; min-width:70px; padding-inline:12px; }
  .sama-search-filters { gap:5px; }
  .sama-search-filters a { min-height:32px; padding:5px 9px; font-size:.68rem; }
  .sama-author-profile { grid-template-columns:64px minmax(0,1fr); align-items:start; }
  .sama-author-profile-avatar img { width:64px; height:64px; }
  .sama-author-profile-copy .sama-page-description { font-size:.82rem; }
  .sama-404-hero { padding-block:52px; }
  .sama-404-code { font-size:11rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sama-search-filters a { transition:none; }
}
@media print {
  .sama-breadcrumbs,
  .sama-search-filters,
  .sama-discover-more { display:none!important; }
}

/* ==========================================================
   v1.3.0 — Video & Multimedia Experience
   ========================================================== */
.sama-card-thumb,
.sama-important-thumb,
.sama-home-compact-thumb,
.sama-editorial-main-media,
.sama-editorial-secondary-thumb,
.sama-video-card-media { position:relative; }

.sama-video-badge {
  position:absolute;
  inset-inline-start:10px;
  inset-block-end:10px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:4px 8px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(0,0,0,.78);
  color:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.22);
  backdrop-filter:blur(8px);
  font-size:.68rem;
  font-weight:900;
  line-height:1;
}
.sama-video-play {
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--sama-red);
  color:#fff;
  font-size:.56rem;
  padding-inline-start:1px;
}
.sama-video-duration { font-variant-numeric:tabular-nums; letter-spacing:.02em; }

/* Homepage video newsroom */
.sama-video-showcase {
  margin-top:8px;
  padding-block:34px 40px;
  border-top:0!important;
  background:#0d0d0f;
  color:#fff;
}
.sama-video-showcase + .sama-section { border-top:0; }
.sama-video-showcase-head,
.sama-video-archive-section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
  padding-top:12px;
  border-top:4px solid var(--sama-red);
}
.sama-video-showcase-head > div { display:flex; align-items:baseline; gap:10px; }
.sama-video-showcase-head span { color:#a8a8ad; font-size:.72rem; font-weight:900; }
.sama-video-showcase-head h2 { margin:0; color:#fff; font-size:clamp(1.35rem,2.4vw,2rem); line-height:1.15; direction:ltr; }
.sama-video-showcase-head > a { color:#fff; font-size:.78rem; font-weight:900; }
.sama-video-showcase-head > a:hover,
.sama-video-showcase-head > a:focus-visible { color:#ff6b6b; outline:0; }
.sama-video-showcase-grid {
  display:grid;
  grid-template-columns:minmax(0,1.62fr) minmax(340px,.9fr);
  gap:22px;
  align-items:start;
}
.sama-video-showcase-side {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 14px;
}
.sama-video-card { min-width:0; }
.sama-video-card-media {
  display:block;
  overflow:hidden;
  aspect-ratio:16/9;
  background:#18181b;
}
.sama-video-card-media img,
.sama-video-card-media > .sama-card-placeholder {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .24s ease;
}
.sama-video-card:hover .sama-video-card-media img { transform:scale(1.025); }
.sama-video-card-body { padding-top:10px; }
.sama-video-kicker { color:#ff5757; font-size:.7rem; font-weight:900; }
.sama-video-card h3 { margin:4px 0 6px; color:#fff; font-size:.95rem; line-height:1.55; }
.sama-video-card h3 a:hover,
.sama-video-card h3 a:focus-visible { color:#ff6b6b; outline:0; }
.sama-video-card time { color:#9d9da3; font-size:.67rem; }
.sama-video-card--lead h3 { margin-top:6px; font-size:clamp(1.35rem,2.5vw,2.05rem); line-height:1.35; }
.sama-video-card--lead p { margin:8px 0 8px; max-width:760px; color:#c7c7cb; font-size:.84rem; line-height:1.75; }
.sama-video-card--lead .sama-video-badge { min-height:36px; padding:6px 10px; }
.sama-video-card--lead .sama-video-play { width:22px; height:22px; }

/* Featured player */
.sama-media-player { width:100%; min-width:0; }
.sama-media-player-frame {
  position:relative;
  overflow:hidden;
  width:100%;
  aspect-ratio:16/9;
  background:#000;
}
.sama-media-player iframe,
.sama-media-player video {
  display:block;
  width:100%;
  height:100%;
  border:0;
  object-fit:contain;
  background:#000;
}
.sama-media-player-meta {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  border:1px solid var(--sama-border);
  border-top:0;
  background:var(--sama-surface-soft);
  color:var(--sama-muted);
  font-size:.68rem;
}
.sama-hls-fallback {
  display:inline-flex;
  position:absolute;
  inset-inline-start:50%;
  inset-block-end:16px;
  transform:translateX(-50%);
  padding:7px 12px;
  border-radius:4px;
  background:var(--sama-red-dark);
  color:#fff;
  font-size:.72rem;
  font-weight:900;
}
.sama-hls-fallback[hidden] { display:none; }
.sama-article-video-media { align-self:center; }
.sama-article-video-media .sama-media-player-frame { border-radius:8px; }
.sama-article-video-media .sama-media-player-meta { border-radius:0 0 6px 6px; }

/* Gutenberg multimedia inside articles */
.sama-article-content .wp-block-video,
.sama-article-content .wp-block-embed,
.sama-article-content .wp-block-audio,
.sama-article-content .wp-block-gallery { margin-block:28px; }
.sama-article-content .wp-block-video video,
.sama-article-content .wp-block-embed__wrapper iframe {
  width:100%;
  max-width:100%;
  border-radius:8px;
  background:#000;
}
.sama-article-content .wp-block-embed.is-type-video .wp-block-embed__wrapper {
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#000;
  border-radius:8px;
}
.sama-article-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
  position:absolute;
  inset:0;
  height:100%;
}
.sama-article-content .wp-block-video figcaption,
.sama-article-content .wp-block-gallery figcaption,
.sama-article-content .wp-block-embed figcaption {
  color:var(--sama-muted);
  font-size:.72rem;
  line-height:1.6;
}
.sama-article-content .wp-block-audio audio { width:100%; }
.sama-article-content .wp-block-gallery img { cursor:zoom-in; }

/* Dedicated video archive */
.sama-video-archive { background:var(--sama-surface); }
.sama-video-archive-head {
  padding-block:28px 30px;
  background:#0d0d0f;
  color:#fff;
}
.sama-video-archive-head .sama-breadcrumbs,
.sama-video-archive-head .sama-breadcrumbs a,
.sama-video-archive-head .sama-breadcrumbs [aria-current="page"] { color:#b7b7bc; }
.sama-video-archive-title-row {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  border-top:4px solid var(--sama-red);
  padding-top:18px;
}
.sama-video-eyebrow { color:#ff5c5c; font-size:.76rem; font-weight:900; letter-spacing:.05em; }
.sama-video-archive-title-row h1 { margin:4px 0 0; color:#fff; font-size:clamp(2rem,5vw,4rem); line-height:1.1; }
.sama-video-archive-description { max-width:760px; margin-top:10px; color:#bebec2; font-size:.88rem; }
.sama-video-archive-mark { flex:0 0 auto; color:var(--sama-red); font-size:clamp(2.8rem,8vw,6rem); line-height:.8; }
.sama-video-archive-featured { padding-block:28px 34px; background:#0d0d0f; color:#fff; }
.sama-video-archive-featured-grid {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(360px,1fr);
  gap:22px;
  align-items:start;
}
.sama-video-archive-featured-side {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 14px;
}
.sama-video-archive-latest { padding-top:34px; }
.sama-video-archive-section-head { border-top-color:var(--sama-red); }
.sama-video-archive-section-head h2 { margin:0; color:var(--sama-ink); font-size:clamp(1.3rem,2.3vw,1.9rem); }
.sama-video-archive-section-head span { color:var(--sama-muted); font-size:.74rem; font-weight:800; }
.sama-video-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px 16px;
}
.sama-video-grid .sama-video-card h3 { color:var(--sama-ink); }
.sama-video-grid .sama-video-card time { color:var(--sama-muted); }
.sama-video-grid .sama-video-kicker { color:var(--sama-red-dark); }
.sama-video-grid .sama-video-card-media { background:var(--sama-surface-soft); }

/* Accessible article-gallery lightbox */
.sama-lightbox[hidden] { display:none!important; }
.sama-lightbox { position:fixed; inset:0; z-index:10050; display:grid; place-items:center; padding:20px; }
.sama-lightbox-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.92); }
.sama-lightbox-panel {
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:min(1180px,96vw);
  max-height:92vh;
}
.sama-lightbox figure { margin:0; display:grid; gap:8px; max-width:100%; max-height:92vh; }
.sama-lightbox img { max-width:100%; max-height:84vh; object-fit:contain; margin:auto; }
.sama-lightbox figcaption { max-width:900px; margin:auto; color:#d2d2d5; text-align:center; font-size:.76rem; }
.sama-lightbox-close,
.sama-lightbox-nav {
  position:absolute;
  z-index:2;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.55);
  color:#fff;
  backdrop-filter:blur(8px);
}
.sama-lightbox-close { inset-block-start:8px; inset-inline-end:8px; width:42px; height:42px; border-radius:50%; font-size:1.7rem; }
.sama-lightbox-nav { top:50%; transform:translateY(-50%); width:44px; height:58px; font-size:2rem; }
.sama-lightbox-prev { inset-inline-start:8px; }
.sama-lightbox-next { inset-inline-end:8px; }
.sama-lightbox-close:hover,
.sama-lightbox-close:focus-visible,
.sama-lightbox-nav:hover,
.sama-lightbox-nav:focus-visible { border-color:#fff; outline:2px solid #fff; outline-offset:2px; }

@media (max-width:1020px) {
  .sama-video-showcase-grid,
  .sama-video-archive-featured-grid { grid-template-columns:minmax(0,1.35fr) minmax(300px,.9fr); gap:16px; }
  .sama-video-showcase-side,
  .sama-video-archive-featured-side { grid-template-columns:1fr; }
  .sama-video-showcase-side .sama-video-card,
  .sama-video-archive-featured-side .sama-video-card { display:grid; grid-template-columns:126px minmax(0,1fr); gap:10px; align-items:start; }
  .sama-video-showcase-side .sama-video-card-media,
  .sama-video-archive-featured-side .sama-video-card-media { aspect-ratio:16/10; }
  .sama-video-showcase-side .sama-video-card-body,
  .sama-video-archive-featured-side .sama-video-card-body { padding-top:0; }
  .sama-video-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:760px) {
  .sama-video-showcase-grid,
  .sama-video-archive-featured-grid { grid-template-columns:1fr; }
  .sama-video-showcase-side,
  .sama-video-archive-featured-side { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sama-video-showcase-side .sama-video-card,
  .sama-video-archive-featured-side .sama-video-card { display:block; }
  .sama-video-showcase-side .sama-video-card-body,
  .sama-video-archive-featured-side .sama-video-card-body { padding-top:8px; }
  .sama-video-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px; }
  .sama-video-archive-title-row { align-items:center; }
  .sama-video-archive-mark { font-size:3rem; }
}

@media (max-width:520px) {
  .sama-video-showcase { padding-block:26px 30px; }
  .sama-video-showcase-head,
  .sama-video-archive-section-head { align-items:start; }
  .sama-video-showcase-head > div { display:block; }
  .sama-video-showcase-head > a { margin-top:4px; }
  .sama-video-showcase-side,
  .sama-video-archive-featured-side { grid-template-columns:1fr 1fr; gap:14px 9px; }
  .sama-video-card h3 { font-size:.82rem; line-height:1.5; }
  .sama-video-card--lead h3 { font-size:1.35rem; }
  .sama-video-card--lead p { display:none; }
  .sama-video-grid { grid-template-columns:1fr 1fr; gap:18px 9px; }
  .sama-video-grid .sama-video-card h3 { font-size:.8rem; }
  .sama-video-badge { inset-inline-start:6px; inset-block-end:6px; min-height:26px; padding:3px 6px; }
  .sama-video-play { width:16px; height:16px; }
  .sama-video-archive-title-row { align-items:end; }
  .sama-video-archive-mark { display:none; }
  .sama-lightbox { padding:8px; }
  .sama-lightbox-nav { width:38px; height:50px; }
}

@media (prefers-reduced-motion: reduce) {
  .sama-video-card-media img { transition:none; }
}

@media print {
  .sama-video-showcase,
  .sama-lightbox,
  .sama-video-badge { display:none!important; }
}
.sama-media-placeholder {
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  min-height:72px;
  background:linear-gradient(145deg,#151515 0%,#2a2a2a 68%,#c90000 100%);
  color:#fff;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.03em;
  direction:ltr;
}
.sama-video-card-media > .sama-card-placeholder { display:grid; place-items:center; background:linear-gradient(145deg,#161616,#292929 68%,#c90000); }

/* v1.4.0 — Privacy-first personalization and recommended stories */
.sama-recommendations { position:relative; }
.sama-recommendations-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:12px; }
.sama-recommendations-head .sama-legacy-section-head { flex:1 1 auto; margin-bottom:0; }
.sama-personalization-actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.sama-personalization-actions button {
  min-height:34px;
  border:1px solid var(--sama-border);
  border-radius:999px;
  background:var(--sama-surface);
  color:var(--sama-muted);
  padding:5px 10px;
  font-size:.7rem;
  font-weight:800;
  line-height:1.2;
}
.sama-personalization-actions button:hover,
.sama-personalization-actions button:focus-visible { border-color:var(--sama-red); color:var(--sama-red); outline:none; }
.sama-personalization-toggle[aria-pressed="true"] { background:var(--sama-surface-soft); }
.sama-recommendation-card[hidden] { display:none!important; }
.sama-recommendation-card { transition:opacity .18s ease, transform .18s ease; }
.sama-recommendation-card:focus-within { outline:2px solid var(--sama-red); outline-offset:3px; }
html[data-theme="dark"] .sama-personalization-actions button { background:#111; border-color:#303030; color:#bbb; }
html[data-theme="dark"] .sama-personalization-actions button:hover,
html[data-theme="dark"] .sama-personalization-actions button:focus-visible { color:#fff; border-color:var(--sama-red); }

@media (max-width: 900px) {
  .sama-recommendations-head { align-items:flex-start; flex-direction:column; gap:10px; }
  .sama-recommendations-head .sama-legacy-section-head { width:100%; }
  .sama-personalization-actions { width:100%; justify-content:flex-start; flex-wrap:wrap; }
}

@media (max-width: 560px) {
  .sama-personalization-actions button { font-size:.66rem; min-height:32px; padding:5px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .sama-recommendation-card { transition:none; }
}

/* v1.5.0 — PWA, Core Web Vitals hardening & mobile news experience */
.sama-mobile-quicknav { display:none; }
.sama-mobile-app-actions { display:grid; gap:8px; padding:12px 16px 16px; border-top:1px solid var(--sama-border); background:var(--sama-surface); }
.sama-mobile-app-action { width:100%; min-height:44px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--sama-border); border-radius:9px; background:var(--sama-surface-soft); color:var(--sama-text); font:inherit; font-weight:900; cursor:pointer; touch-action:manipulation; }
.sama-mobile-app-action:hover,.sama-mobile-app-action:focus-visible { border-color:var(--sama-red); color:var(--sama-red-dark); outline:2px solid transparent; }
.sama-mobile-app-action.is-active { border-color:#16803d; color:#16803d; }
.sama-mobile-app-action:disabled { opacity:.62; cursor:not-allowed; }
.sama-mobile-app-action .sama-ui-icon { width:19px; height:19px; }
.sama-network-status { min-height:32px; display:flex; align-items:center; justify-content:center; padding:6px 10px; border-radius:8px; background:#eef8f0; color:#12632e; font-size:.78rem; font-weight:900; }
.sama-network-status.is-offline { background:#fff0f0; color:#9b1515; }
.sama-pwa-update-toast { position:fixed; inset-inline-start:16px; bottom:16px; z-index:10050; width:min(calc(100vw - 32px),420px); display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid var(--sama-border); border-inline-start:4px solid var(--sama-red); border-radius:10px; background:var(--sama-surface); color:var(--sama-text); box-shadow:0 14px 38px rgba(0,0,0,.2); font-size:.84rem; font-weight:900; }
.sama-pwa-update-toast button { border:0; border-radius:7px; padding:8px 11px; background:var(--sama-red-dark); color:#fff; font:inherit; font-size:.78rem; font-weight:900; cursor:pointer; white-space:nowrap; }
html.sama-is-offline .sama-breaking { opacity:.86; }

/* Reserve stable header space for async weather text and reduce layout shift. */
.sama-weather-status { min-width:74px; }

/* Let browsers skip below-the-fold rendering work without changing document semantics. */
@supports (content-visibility:auto) {
  .sama-home-card-section,
  .sama-home-trending,
  .sama-video-showcase,
  .sama-related,
  .sama-article-engagement,
  .sama-discover-more,
  .sama-footer-main { content-visibility:auto; contain-intrinsic-size:auto 520px; }
}

/* More predictable tap targets and compositor-friendly interactive elements. */
.sama-icon-btn,
.sama-primary-nav a,
.sama-mobile-menu a,
.sama-breaking a,
.sama-share a,
.sama-share button { touch-action:manipulation; }

@media (max-width:820px) {
  .sama-mobile-quicknav { display:grid; grid-template-columns:repeat(4,1fr); min-height:54px; background:var(--sama-surface); border-bottom:1px solid var(--sama-border); box-shadow:0 4px 12px rgba(0,0,0,.05); }
  .sama-mobile-quicknav a,
  .sama-mobile-quicknav button { min-width:0; min-height:54px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:0; border-inline-start:1px solid var(--sama-border); background:transparent; color:var(--sama-text); text-decoration:none; font:inherit; font-size:.69rem; font-weight:900; cursor:pointer; touch-action:manipulation; }
  .sama-mobile-quicknav a:first-child { border-inline-start:0; }
  .sama-mobile-quicknav .sama-ui-icon { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
  .sama-mobile-quicknav a:hover,
  .sama-mobile-quicknav a:focus-visible,
  .sama-mobile-quicknav button:hover,
  .sama-mobile-quicknav button:focus-visible { color:var(--sama-red-dark); background:var(--sama-surface-soft); outline:0; }
  .sama-mobile-panel { overscroll-behavior:contain; }
  .sama-mobile-menu a { min-height:46px; display:flex; align-items:center; }
  .sama-pwa-update-toast { bottom:12px; inset-inline:12px; width:auto; }
}

@media (max-width:520px) {
  .sama-weather-status { min-width:64px; max-width:150px; }
  .sama-mobile-quicknav span { max-width:72px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

@media (display-mode:standalone) {
  .sama-mobile-app-action[data-sama-pwa-install] { display:none!important; }
  body { overscroll-behavior-y:contain; }
}

@media (prefers-reduced-motion:reduce) {
  .sama-pwa-update-toast { transition:none!important; }
}

@media print {
  .sama-mobile-quicknav,.sama-mobile-app-actions,.sama-pwa-update-toast { display:none!important; }
}
@media (max-width:820px) {
  .sama-mobile-quicknav { position:sticky; top:64px; z-index:1080; }
  body.admin-bar .sama-mobile-quicknav { top:110px; }
  .sama-mobile-panel { padding-bottom:max(0px, env(safe-area-inset-bottom)); }
}
@media (max-width:580px) {
  .sama-mobile-quicknav { top:60px; }
  body.admin-bar .sama-mobile-quicknav { top:106px; }
}
.sama-pwa-ios-tip { display:block; text-align:center; }

/* v1.5.0.2 — centered legal footer + free MET Norway weather attribution. */
.sama-footer-bottom {
  justify-content:center;
  text-align:center;
}
.sama-footer-bottom > span { width:100%; text-align:center; }
.sama-footer-bottom bdi { direction:ltr; unicode-bidi:isolate; }
.sama-weather { gap:6px; }
.sama-weather-credit {
  display:none;
  color:rgba(255,255,255,.78);
  font-size:.6rem;
  font-weight:700;
  line-height:1;
  text-decoration:underline;
  text-underline-offset:2px;
  white-space:nowrap;
}
.sama-weather[data-state="ready"] .sama-weather-credit { display:inline-flex; }
.sama-weather-credit:hover,
.sama-weather-credit:focus-visible { color:#fff; outline:1px solid currentColor; outline-offset:2px; }
@media (max-width:520px) {
  .sama-footer-bottom { align-items:center; text-align:center; }
  .sama-weather-credit { font-size:.56rem; }
}

/* ==========================================================
   v1.5.0.3 — Full-width institutional pages
   About, Privacy, Terms, Event submissions and Writer join.
   ========================================================== */
.sama-page-head--full .sama-container,
.sama-page-content--full,
.sama-static-page-body { width:min(calc(100% - 32px), var(--sama-max)); max-width:var(--sama-max); margin-inline:auto; }
.sama-page-content--full { font-size:1.04rem; }
.sama-page-content--full > * { max-width:none; }
.sama-page-content--full .alignwide { width:100%; max-width:none; }

.sama-institutional-hero {
  position:relative;
  overflow:hidden;
  padding:34px 0 30px;
  border-bottom:1px solid var(--sama-border);
  background:
    radial-gradient(circle at 8% 0%, rgba(255,0,0,.10), transparent 30%),
    linear-gradient(180deg, var(--sama-surface-soft), var(--sama-surface));
}
.sama-institutional-hero::before {
  content:"";
  position:absolute;
  inset-block:0;
  inset-inline-start:0;
  width:5px;
  background:var(--sama-red);
}
.sama-institutional-hero-copy { max-width:950px; padding-top:24px; }
.sama-institutional-kicker {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  margin-bottom:10px;
  padding:4px 10px;
  border-radius:3px;
  background:var(--sama-red);
  color:#fff;
  font-size:.73rem;
  font-weight:900;
  letter-spacing:.025em;
}
.sama-institutional-title {
  margin:0;
  color:var(--sama-ink);
  font-size:clamp(2.2rem,5vw,4.8rem);
  line-height:1.08;
  letter-spacing:-.025em;
}
.sama-institutional-description {
  max-width:900px;
  margin:16px 0 0;
  color:var(--sama-muted);
  font-size:clamp(1rem,1.7vw,1.25rem);
  line-height:1.8;
}
.sama-institutional-highlights {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:28px;
}
.sama-institutional-highlight {
  min-width:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:16px;
  border:1px solid var(--sama-border);
  border-radius:10px;
  background:var(--sama-surface);
  box-shadow:0 5px 16px rgba(0,0,0,.035);
}
.sama-institutional-highlight-no {
  color:var(--sama-red);
  font-size:.72rem;
  line-height:1.7;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.sama-institutional-highlight strong { display:block; color:var(--sama-ink); font-size:.93rem; line-height:1.45; }
.sama-institutional-highlight p { margin:5px 0 0; color:var(--sama-muted); font-size:.78rem; line-height:1.7; }

.sama-static-page-body { padding-block:34px 54px; }
.sama-static-layout { display:grid; align-items:start; gap:28px; }
.sama-static-layout--legal,
.sama-static-layout--action { grid-template-columns:280px minmax(0,1fr); }

.sama-static-content {
  min-width:0;
  width:100%;
  padding:28px clamp(20px,3vw,42px);
  border:1px solid var(--sama-border);
  border-radius:12px;
  background:var(--sama-surface);
  box-shadow:0 8px 28px rgba(0,0,0,.045);
  font-size:1.02rem;
  line-height:1.9;
  overflow-wrap:anywhere;
}
.sama-static-content > :first-child { margin-top:0!important; }
.sama-static-content > :last-child { margin-bottom:0!important; }
.sama-static-content h2,
.sama-static-content h3,
.sama-static-content h4 { color:var(--sama-ink); scroll-margin-top:160px; }
.sama-static-content h2 {
  margin:2.2em 0 .72em;
  padding-top:13px;
  border-top:4px solid var(--sama-red);
  font-size:clamp(1.35rem,2vw,1.9rem);
  line-height:1.35;
}
.sama-static-content h3 { margin:1.7em 0 .58em; font-size:1.2rem; line-height:1.45; }
.sama-static-content p { margin:0 0 1.25em; }
.sama-static-content ul,
.sama-static-content ol { margin:0 0 1.45em; padding-inline-start:1.35em; }
.sama-static-content li { margin:.42em 0; }
.sama-static-content a { color:var(--sama-red-dark); text-decoration:underline; text-underline-offset:3px; }
.sama-static-content blockquote {
  margin:1.8em 0;
  padding:18px 20px;
  border-inline-start:4px solid var(--sama-red);
  border-radius:7px;
  background:var(--sama-surface-soft);
}
.sama-static-content table { width:100%; border-collapse:collapse; display:block; overflow:auto; margin:1.6em 0; }
.sama-static-content th,
.sama-static-content td { padding:11px 13px; border:1px solid var(--sama-border); text-align:start; }
.sama-static-content img { border-radius:9px; }

.sama-static-content--about {
  max-width:none;
  position:relative;
  padding:clamp(28px,4vw,54px);
}
.sama-static-content--about > p:first-of-type {
  max-width:1040px;
  color:var(--sama-ink);
  font-size:clamp(1.15rem,1.7vw,1.45rem);
  font-weight:700;
  line-height:1.85;
}

.sama-static-toc,
.sama-action-aside {
  position:sticky;
  top:150px;
  min-width:0;
  padding:18px;
  border:1px solid var(--sama-border);
  border-top:4px solid var(--sama-red);
  border-radius:10px;
  background:var(--sama-surface-soft);
}
.sama-static-toc-title { display:block; margin-bottom:10px; color:var(--sama-ink); font-size:.92rem; }
.sama-static-toc ul { list-style:none; margin:0; padding:0; }
.sama-static-toc li { margin:0; border-top:1px solid var(--sama-border); }
.sama-static-toc li:first-child { border-top:0; }
.sama-static-toc a { display:block; padding:9px 2px; color:var(--sama-muted); font-size:.78rem; font-weight:800; line-height:1.5; }
.sama-static-toc a:hover,
.sama-static-toc a:focus-visible { color:var(--sama-red); outline:none; }
.sama-static-toc-level-3 a { padding-inline-start:13px; font-size:.73rem; font-weight:700; }

.sama-action-aside-mark { display:block; color:var(--sama-red); font-size:.74rem; font-weight:900; letter-spacing:.08em; direction:ltr; text-align:start; }
.sama-action-aside h2 { margin:5px 0 14px; color:var(--sama-ink); font-size:1.25rem; line-height:1.4; }
.sama-action-aside ol { list-style:none; counter-reset:sama-action; margin:0; padding:0; }
.sama-action-aside li {
  counter-increment:sama-action;
  position:relative;
  margin:0;
  padding:11px 34px 11px 0;
  border-top:1px solid var(--sama-border);
  color:var(--sama-muted);
  font-size:.78rem;
  font-weight:700;
  line-height:1.65;
}
[dir="rtl"] .sama-action-aside li { padding:11px 34px 11px 0; }
.sama-action-aside li::before {
  content:counter(sama-action);
  position:absolute;
  inset-inline-start:0;
  top:10px;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--sama-red);
  color:#fff;
  font-size:.66rem;
  font-weight:900;
}

/* Form systems: native HTML, Contact Form 7, WPForms, Forminator and common block forms. */
.sama-static-content--form-page form { width:100%; }
.sama-static-content--form-page label,
.sama-static-content--form-page .wpforms-field-label,
.sama-static-content--form-page .forminator-label { display:block; margin-bottom:6px; color:var(--sama-ink); font-size:.82rem; font-weight:900; }
.sama-static-content--form-page input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.sama-static-content--form-page textarea,
.sama-static-content--form-page select,
.sama-static-content--form-page .wpforms-field input,
.sama-static-content--form-page .wpforms-field textarea,
.sama-static-content--form-page .forminator-input,
.sama-static-content--form-page .forminator-textarea,
.sama-static-content--form-page .forminator-select {
  width:100%;
  min-height:50px;
  border:1px solid var(--sama-border)!important;
  border-radius:8px!important;
  background:var(--sama-surface)!important;
  color:var(--sama-text)!important;
  padding:10px 13px!important;
  outline:0;
  box-shadow:none!important;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.sama-static-content--form-page textarea,
.sama-static-content--form-page .wpforms-field textarea,
.sama-static-content--form-page .forminator-textarea { min-height:150px; resize:vertical; }
.sama-static-content--form-page input:focus,
.sama-static-content--form-page textarea:focus,
.sama-static-content--form-page select:focus { border-color:var(--sama-red)!important; box-shadow:0 0 0 3px rgba(255,0,0,.08)!important; }
.sama-static-content--form-page input[type="file"] { min-height:48px; padding:10px!important; border:1px dashed var(--sama-border)!important; }
.sama-static-content--form-page input[type="checkbox"],
.sama-static-content--form-page input[type="radio"] { accent-color:var(--sama-red); }
.sama-static-content--form-page input[type="submit"],
.sama-static-content--form-page button[type="submit"],
.sama-static-content--form-page .wpforms-submit,
.sama-static-content--form-page .forminator-button-submit {
  min-height:48px!important;
  border:0!important;
  border-radius:8px!important;
  background:var(--sama-red)!important;
  color:#fff!important;
  padding:10px 22px!important;
  font:inherit!important;
  font-weight:900!important;
  cursor:pointer;
  box-shadow:none!important;
}
.sama-static-content--form-page input[type="submit"]:hover,
.sama-static-content--form-page button[type="submit"]:hover,
.sama-static-content--form-page .wpforms-submit:hover,
.sama-static-content--form-page .forminator-button-submit:hover { background:var(--sama-red-dark)!important; }
.sama-static-content--form-page .wpcf7-form-control-wrap,
.sama-static-content--form-page .wpforms-field,
.sama-static-content--form-page .forminator-row { margin-bottom:16px; }
.sama-static-content--form-page .wpcf7-not-valid-tip,
.sama-static-content--form-page .wpforms-error,
.sama-static-content--form-page .forminator-error-message { color:#b00020!important; font-size:.74rem; font-weight:800; }
.sama-static-content--form-page .wpcf7-response-output,
.sama-static-content--form-page .wpforms-confirmation-container,
.sama-static-content--form-page .forminator-response-message { margin:18px 0!important; padding:13px 15px!important; border-radius:8px!important; border:1px solid var(--sama-border)!important; background:var(--sama-surface-soft)!important; }

html[data-theme="dark"] .sama-institutional-hero { background:radial-gradient(circle at 8% 0%,rgba(255,0,0,.13),transparent 30%),linear-gradient(180deg,#171717,#0e0e0e); }
html[data-theme="dark"] .sama-institutional-highlight,
html[data-theme="dark"] .sama-static-content { box-shadow:none; }

@media (max-width:980px) {
  .sama-static-layout--legal,
  .sama-static-layout--action { grid-template-columns:1fr; }
  .sama-static-toc,
  .sama-action-aside { position:static; top:auto; }
  .sama-static-toc ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
  .sama-action-aside ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
}

@media (max-width:720px) {
  .sama-institutional-hero { padding-top:24px; }
  .sama-institutional-hero-copy { padding-top:18px; }
  .sama-institutional-highlights { grid-template-columns:1fr; gap:8px; }
  .sama-institutional-highlight { padding:13px; }
  .sama-static-page-body { width:min(calc(100% - 24px),var(--sama-max)); padding-block:24px 38px; }
  .sama-static-content { padding:20px 16px; border-radius:9px; font-size:.98rem; }
  .sama-static-content h2 { font-size:1.35rem; }
  .sama-static-toc ul,
  .sama-action-aside ol { grid-template-columns:1fr; }
}

@media (max-width:520px) {
  .sama-page-head--full .sama-container,
  .sama-page-content--full { width:min(calc(100% - 24px),var(--sama-max)); }
  .sama-institutional-title { font-size:clamp(2rem,10vw,3rem); }
  .sama-institutional-description { font-size:.95rem; }
  .sama-static-content { border-inline:0; padding-inline:0; box-shadow:none; }
  .sama-static-content--form-page { border-inline:1px solid var(--sama-border); padding-inline:14px; }
}

@media print {
  .sama-institutional-highlights,
  .sama-static-toc,
  .sama-action-aside { display:none!important; }
  .sama-static-layout { display:block; }
  .sama-static-content { border:0; box-shadow:none; padding:0; }
}


/* v1.5.0.5 — Breaking rail uses a clean white newsroom surface. */
.sama-breaking,
html[data-theme="dark"] .sama-breaking {
  background:#fff !important;
  color:#111;
  border-bottom-color:#e5e5e5;
}
.sama-breaking-inner,
.sama-breaking-content,
.sama-breaking-content > div,
.sama-breaking-content > section,
.sama-breaking-content > ul,
.sama-breaking-content > ol {
  background-color:transparent !important;
}
.sama-breaking-content,
.sama-breaking-content a,
html[data-theme="dark"] .sama-breaking-content,
html[data-theme="dark"] .sama-breaking-content a { color:#111; }
.sama-breaking-content a:hover,
html[data-theme="dark"] .sama-breaking-content a:hover { color:var(--sama-red); }

/* ==========================================================
   v1.5.0.5 — Mobile navigation single-trigger policy +
   LoginPress-compatible variable account action.
   ========================================================== */
.sama-account-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:8px 12px;
  border:1px solid var(--sama-border);
  border-radius:7px;
  background:var(--sama-surface);
  color:var(--sama-text);
  font-size:.78rem;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  touch-action:manipulation;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.sama-account-action .sama-ui-icon { width:18px; height:18px; }
.sama-account-action:hover,
.sama-account-action:focus-visible {
  border-color:var(--sama-red-dark);
  background:var(--sama-red-dark);
  color:#fff;
  outline:0;
}
.sama-account-action--logout { border-color:#d8d8d8; }
.sama-header-actions .sama-account-action { margin-inline-end:4px; }
.sama-mobile-account { padding:12px 16px; border-bottom:1px solid var(--sama-border); background:var(--sama-surface); }
.sama-account-action--drawer { width:100%; min-height:44px; background:var(--sama-surface-soft); }
html[data-theme="dark"] .sama-account-action { border-color:#303030; }

/* When the quick navigation rail is enabled it is the only mobile/tablet
   entry point to the sections drawer. The header hamburger is rendered only
   when quick navigation is disabled, preventing the menu from appearing twice. */
@media (max-width:820px) {
  .sama-account-action--header { display:none!important; }
}

@media (prefers-reduced-motion:reduce) {
  .sama-account-action { transition:none; }
}



/* Native SAMA NEWS forms — v1.6.0 */
.sama-native-form-shell{margin-top:28px;border:1px solid var(--sama-border);border-radius:16px;background:var(--sama-surface);overflow:hidden;box-shadow:0 12px 32px rgba(0,0,0,.04)}
.sama-native-form-head{padding:22px 24px;background:var(--sama-surface-soft);border-bottom:1px solid var(--sama-border)}
.sama-native-form-head>span{display:block;color:var(--sama-red);font-size:.72rem;font-weight:900;letter-spacing:.08em}.sama-native-form-head h2{margin:5px 0 4px;color:var(--sama-ink);font-size:1.45rem}.sama-native-form-head p{margin:0;color:var(--sama-muted);font-size:.9rem}
.sama-native-form{padding:24px}.sama-native-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sama-native-field{display:flex;flex-direction:column;gap:7px}.sama-native-field.is-wide,.sama-native-consent.is-wide{grid-column:1/-1}.sama-native-field>label,.sama-native-checkgroup legend{font-size:.82rem;font-weight:900;color:var(--sama-ink)}
.sama-native-field input:not([type=checkbox]),.sama-native-field textarea,.sama-native-field select{width:100%;min-height:48px;border:1px solid var(--sama-border);border-radius:9px;background:var(--sama-surface);color:var(--sama-text);padding:10px 12px}.sama-native-field textarea{min-height:130px;resize:vertical}.sama-native-field input:focus,.sama-native-field textarea:focus,.sama-native-field select:focus{outline:0;border-color:var(--sama-red);box-shadow:0 0 0 3px rgba(255,0,0,.08)}
.sama-native-field input[type=file]{padding:9px;border-style:dashed}.sama-native-field small{color:var(--sama-muted);font-size:.75rem}.sama-native-checkgroup{border:1px solid var(--sama-border);border-radius:10px;padding:12px}.sama-native-checkgroup>div{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:8px}.sama-native-checkgroup label{display:inline-flex;align-items:center;gap:5px;font-size:.8rem}.sama-native-form input[type=checkbox]{accent-color:var(--sama-red)}
.sama-native-consent{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:9px;background:var(--sama-surface-soft);font-size:.82rem;font-weight:700}.sama-native-form-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;padding-top:18px;border-top:1px solid var(--sama-border)}.sama-native-form-actions button{border:0;border-radius:9px;background:var(--sama-red);color:#fff;padding:12px 20px;font-weight:900}.sama-native-form-actions button:hover{background:var(--sama-red-dark)}.sama-native-form-actions p{margin:0;color:var(--sama-muted);font-size:.76rem}
.sama-form-honeypot{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  border:0!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  opacity:0!important;
}.sama-native-form-notice{margin:20px 24px 0;padding:13px 15px;border-radius:10px;border:1px solid}.sama-native-form-notice strong{display:block}.sama-native-form-notice p{margin:3px 0 0}.sama-native-form-notice.is-success{background:#ecfdf3;border-color:#abefc6;color:#067647}.sama-native-form-notice.is-error{background:#fef3f2;border-color:#fecdca;color:#b42318}
@media(max-width:700px){.sama-native-form{padding:18px}.sama-native-form-head{padding:18px}.sama-native-form-grid{grid-template-columns:1fr}.sama-native-field.is-wide,.sama-native-consent.is-wide{grid-column:auto}.sama-native-form-actions{align-items:stretch;flex-direction:column}.sama-native-form-actions button{width:100%}}

/* ==========================================================
   v1.6.0.2 — Footer dark-logo transparency hotfix
   Light mode uses the original transparent mark; dark mode uses
   the white-letter transparent mark on the identical 768x256 canvas.
   ========================================================== */
.sama-mode-logo-link { position:relative; display:block; line-height:0; }
.sama-mode-logo { display:block; }
.sama-mode-logo--dark { display:none; }
html[data-theme="dark"] .sama-mode-logo--light { display:none; }
html[data-theme="dark"] .sama-mode-logo--dark { display:block; }

/* The dark asset is transparent, so the header/drawer no longer need a white
   backing card in dark mode. The boot script sets data-theme before paint. */
html[data-theme="dark"] .sama-brand { background:transparent; padding:0; }
.sama-mobile-logo { background:transparent; padding:4px 7px; }
.sama-mobile-logo .sama-mode-logo-link { display:block; }
html[data-theme="dark"] .sama-mobile-logo { background:transparent; }

/* Footer is dark in both light and dark site modes, so always use the
   white-letter transparent asset there. Never render the light logo or a
   white backing plate in the footer. */
.sama-footer-logo-shell .sama-mode-logo--light { display:none !important; }
.sama-footer-logo-shell .sama-mode-logo--dark { display:block !important; }
.sama-footer-logo-shell { background:transparent !important; padding:0 !important; }

@media (max-width:820px) {
  html[data-theme="dark"] .sama-brand { padding:0; }
}


/* ==========================================================
   v1.6.0.4 — Native form horizontal-overflow hotfix
   The anti-spam honeypot used an off-screen left:-10000px position.
   Absolutely positioned off-screen controls can expand the document scrollable
   overflow even when a descendant page wrapper uses overflow-x:clip.
   Keep the honeypot inside the form geometry and hide it with the standard
   clipped visually-hidden pattern instead.
   ========================================================== */
.sama-native-form-shell {
  position:relative;
  max-inline-size:100%;
}
.sama-institutional-page--contact-events .sama-static-content--form-page,
.sama-institutional-page--join-samanews-writer .sama-static-content--form-page {
  max-inline-size:100%;
  overflow-x:clip;
}

/* ==========================================================
   v1.6.0.3 — Static pages mobile/tablet gutter & overflow hotfix
   Prevent nested page cards/forms from accumulating excessive side
   spacing and contain Gutenberg full-width blocks inside the viewport.
   ========================================================== */
.sama-static-page {
  overflow-x: clip;
}
.sama-static-page .sama-container,
.sama-static-page-body,
.sama-static-layout,
.sama-static-content,
.sama-native-form-shell,
.sama-native-form,
.sama-native-form-grid,
.sama-native-field,
.sama-native-checkgroup,
.sama-static-content form,
.sama-static-content fieldset {
  min-width: 0;
  max-width: 100%;
}
.sama-static-page .alignfull,
.sama-static-page .alignwide {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}
.sama-static-content iframe,
.sama-static-content video,
.sama-static-content embed,
.sama-static-content object,
.sama-static-content pre {
  max-width: 100%;
}
.sama-static-content iframe,
.sama-static-content video,
.sama-static-content embed,
.sama-static-content object {
  width: 100%;
}
.sama-static-content pre {
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sama-static-content input,
.sama-static-content textarea,
.sama-static-content select,
.sama-static-content button {
  max-inline-size: 100%;
}

@media (max-width: 980px) {
  .sama-static-page .sama-container,
  .sama-static-page-body,
  .sama-page-head--full .sama-container,
  .sama-page-content--full {
    width: min(calc(100% - 24px), var(--sama-max));
  }
  .sama-static-page-body {
    padding-block: 24px 40px;
  }
  .sama-static-layout {
    gap: 18px;
  }
  .sama-static-content {
    padding: 22px 18px;
  }
  .sama-static-toc,
  .sama-action-aside {
    padding: 16px;
  }
  .sama-native-form-shell {
    margin-top: 20px;
  }
  .sama-native-form-head,
  .sama-native-form {
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .sama-static-page .sama-container,
  .sama-static-page-body,
  .sama-page-head--full .sama-container,
  .sama-page-content--full {
    width: min(calc(100% - 20px), var(--sama-max));
  }
  .sama-static-page-body {
    padding-block: 20px 34px;
  }
  .sama-static-content {
    padding: 18px 14px;
  }
  .sama-static-content--about {
    padding: 20px 14px;
  }
  .sama-static-toc,
  .sama-action-aside {
    padding: 14px;
  }
  .sama-native-form-shell {
    border-radius: 12px;
  }
  .sama-native-form-head,
  .sama-native-form {
    padding: 16px 14px;
  }
  .sama-native-form-grid {
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .sama-static-page .sama-container,
  .sama-static-page-body,
  .sama-page-head--full .sama-container,
  .sama-page-content--full {
    width: min(calc(100% - 16px), var(--sama-max));
  }
  .sama-static-content {
    border-inline: 0;
    padding-inline: 10px;
    box-shadow: none;
  }
  .sama-static-content--form-page {
    border-inline: 0;
    padding-inline: 0;
  }
  .sama-native-form-shell {
    margin-top: 16px;
    border-radius: 10px;
  }
  .sama-native-form-head,
  .sama-native-form {
    padding-inline: 12px;
  }
  .sama-native-form-actions {
    gap: 10px;
  }
}

/* v1.6.2 — preserve the complete branded fallback artwork instead of cropping it. */
.sama-default-article-image{object-fit:contain!important;background:#999}
.sama-card:hover .sama-default-article-image,.sama-important-card:hover .sama-default-article-image,.sama-video-card:hover .sama-default-article-image{transform:none!important}


/* ==========================================================
   v1.6.2.1 — Breaking mobile/tablet full-text compatibility.
   The theme owns the outer rail; the breaking plugin owns the item.
   On compact viewports neither layer may force single-line clipping.
   ========================================================== */
@media (max-width:820px) {
  .sama-breaking-inner {
    align-items:stretch;
    overflow:visible;
    min-height:42px;
  }
  .sama-breaking-label {
    align-self:stretch;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-inline-end:10px;
  }
  .sama-breaking-content {
    display:flex;
    align-items:center;
    min-width:0;
    min-height:42px;
    padding-block:6px;
    padding-inline-end:4px;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    line-height:1.55;
  }
  .sama-breaking-content > * {
    width:100%;
    min-width:0;
    max-width:100%;
  }
}

@media (max-width:580px) {
  .sama-breaking-inner { min-height:44px; }
  .sama-breaking-label {
    min-width:66px;
    padding-inline:9px;
    margin-inline-end:8px;
  }
  .sama-breaking-content {
    min-height:44px;
    padding-block:7px;
    font-size:.8rem;
  }
}

/* ==========================================================
   v1.6.3 — AI Article Experience
   Presentation-only layer for SAMA NEWS AI Engine.
   ========================================================== */
.sama-ai-reader-stack {
  display:grid;
  gap:18px;
  width:100%;
  min-width:0;
  margin:0 0 32px;
}
.sama-ai-card {
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--sama-border);
  border-top:4px solid var(--sama-red);
  background:var(--sama-surface);
  box-shadow:0 12px 30px rgba(0,0,0,.055);
  padding:22px;
  border-radius:10px;
}
.sama-ai-card::after {
  content:"";
  position:absolute;
  inset-inline-end:-42px;
  top:-58px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:color-mix(in srgb, var(--sama-red) 7%, transparent);
  pointer-events:none;
}
.sama-ai-card__head {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:17px;
}
.sama-ai-card__identity {
  display:flex;
  align-items:center;
  min-width:0;
  gap:11px;
}
.sama-ai-card__identity h2 {
  margin:1px 0 0;
  color:var(--sama-ink);
  font-size:1.18rem;
  line-height:1.35;
  font-weight:900;
}
.sama-ai-eyebrow {
  display:block;
  color:var(--sama-red-dark);
  font-size:.64rem;
  line-height:1.2;
  letter-spacing:.09em;
  font-weight:900;
}
.sama-ai-mark {
  position:relative;
  flex:0 0 auto;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#101010;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.sama-ai-mark::before,
.sama-ai-mark::after,
.sama-ai-mark > span::before,
.sama-ai-mark > span::after {
  content:"";
  position:absolute;
  background:var(--sama-red);
  border-radius:999px;
}
.sama-ai-mark::before { width:15px; height:3px; transform:rotate(45deg); }
.sama-ai-mark::after { width:15px; height:3px; transform:rotate(-45deg); }
.sama-ai-mark > span::before { width:3px; height:15px; }
.sama-ai-mark > span::after { width:7px; height:7px; background:#fff; }
.sama-ai-mark--small { width:28px; height:28px; border-radius:7px; }
.sama-ai-mark--small::before,
.sama-ai-mark--small::after { width:11px; }
.sama-ai-mark--small > span::before { height:11px; }
.sama-ai-mark--small > span::after { width:5px; height:5px; }
.sama-ai-badge {
  position:relative;
  z-index:1;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:26px;
  padding:0 8px;
  border-radius:999px;
  background:#101010;
  color:#fff;
  font-size:.67rem;
  letter-spacing:.05em;
  font-weight:900;
}
.sama-ai-summary__lead {
  margin:0;
  color:var(--sama-ink);
  font-size:1rem;
  line-height:1.9;
  font-weight:700;
}
.sama-ai-points {
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--sama-border);
}
.sama-ai-points__title {
  display:block;
  margin-bottom:10px;
  color:var(--sama-muted);
  font-size:.74rem;
  font-weight:900;
}
.sama-ai-points ul {
  display:grid;
  gap:9px;
  margin:0;
  padding:0;
  list-style:none;
}
.sama-ai-points li {
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  align-items:start;
  gap:9px;
  margin:0;
  color:var(--sama-text);
  font-size:.92rem;
  line-height:1.75;
}
.sama-ai-point-icon {
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  margin-top:2px;
  border-radius:50%;
  background:color-mix(in srgb, var(--sama-red) 10%, var(--sama-surface));
  color:var(--sama-red-dark);
  font-size:.72rem;
  font-weight:900;
}
.sama-ai-card__foot {
  display:flex;
  align-items:flex-start;
  gap:7px;
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid var(--sama-border);
  color:var(--sama-muted);
  font-size:.69rem;
  line-height:1.65;
}
.sama-ai-info-icon {
  flex:0 0 auto;
  width:16px;
  height:16px;
  display:grid;
  place-items:center;
  margin-top:1px;
  border:1px solid currentColor;
  border-radius:50%;
  font-family:Arial,sans-serif;
  font-size:.62rem;
  font-weight:900;
}
.sama-ai-ask {
  background:linear-gradient(180deg, color-mix(in srgb, var(--sama-surface-soft) 62%, var(--sama-surface)), var(--sama-surface));
}
.sama-ai-ask__intro {
  margin:0 0 15px;
  color:var(--sama-muted);
  font-size:.86rem;
  line-height:1.75;
}
.sama-ai-quick {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:14px;
}
.sama-ai-quick__button {
  min-width:0;
  max-width:100%;
  border:1px solid var(--sama-border);
  background:var(--sama-surface);
  color:var(--sama-ink);
  padding:8px 11px;
  border-radius:999px;
  font:inherit;
  font-size:.75rem;
  line-height:1.45;
  font-weight:800;
  cursor:pointer;
  text-align:start;
  transition:border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.sama-ai-quick__button:hover,
.sama-ai-quick__button:focus-visible {
  border-color:var(--sama-red);
  color:var(--sama-red-dark);
  background:color-mix(in srgb, var(--sama-red) 5%, var(--sama-surface));
  outline:0;
  transform:translateY(-1px);
}
.sama-ai-input-shell {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
  align-items:stretch;
  min-width:0;
}
.sama-ai-input-shell textarea {
  display:block;
  width:100%;
  min-width:0;
  min-height:58px;
  max-height:150px;
  resize:vertical;
  margin:0;
  padding:12px 14px;
  border:1px solid var(--sama-border);
  border-radius:8px;
  outline:0;
  background:var(--sama-surface);
  color:var(--sama-text);
  font:inherit;
  font-size:.88rem;
  line-height:1.6;
}
.sama-ai-input-shell textarea:focus {
  border-color:var(--sama-red);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--sama-red) 10%, transparent);
}
.sama-ai-submit {
  align-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:92px;
  padding:0 16px;
  border:0;
  border-radius:8px;
  background:var(--sama-red-dark);
  color:#fff;
  font:inherit;
  font-size:.82rem;
  font-weight:900;
  cursor:pointer;
  transition:background .18s ease, transform .18s ease, opacity .18s ease;
}
.sama-ai-submit:hover,
.sama-ai-submit:focus-visible { background:var(--sama-red); outline:0; transform:translateY(-1px); }
.sama-ai-submit:disabled { opacity:.58; cursor:wait; transform:none; }
.sama-ai-submit__arrow { font-size:1rem; }
.sama-ai-status {
  min-height:0;
  margin-top:8px;
  color:var(--sama-muted);
  font-size:.74rem;
  font-weight:700;
}
.sama-ai-status:empty { display:none; }
.sama-ai-status.is-error { color:#b42318; }
.sama-ai-ask.is-loading .sama-ai-status::before {
  content:"";
  display:inline-block;
  width:11px;
  height:11px;
  margin-inline-end:6px;
  vertical-align:-1px;
  border:2px solid var(--sama-border);
  border-top-color:var(--sama-red);
  border-radius:50%;
  animation:sama-ai-spin .75s linear infinite;
}
@keyframes sama-ai-spin { to { transform:rotate(360deg); } }
.sama-ai-answer {
  margin-top:14px;
  padding:15px 16px;
  border:1px solid var(--sama-border);
  border-inline-start:4px solid var(--sama-red);
  border-radius:8px;
  background:var(--sama-surface);
}
.sama-ai-answer__label {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:var(--sama-ink);
  font-size:.78rem;
}
.sama-ai-answer > p {
  margin:0;
  color:var(--sama-text);
  font-size:.91rem;
  line-height:1.85;
  white-space:pre-line;
}

.sama-ai-reader-before-related {
  width:min(var(--sama-reading), calc(100% - 32px));
  margin:34px auto 30px;
}
.sama-ai-reader-before-related .sama-ai-reader-stack { margin-bottom:0; }
html[data-theme="dark"] .sama-ai-card { box-shadow:0 12px 30px rgba(0,0,0,.22); }
html[data-theme="dark"] .sama-ai-mark { background:#000; }
html[data-theme="dark"] .sama-ai-badge { background:#f2f2f2; color:#111; }
html[data-theme="dark"] .sama-ai-status.is-error { color:#ff8f86; }

@media (max-width:680px) {
  .sama-ai-reader-stack { gap:14px; margin-bottom:26px; }
  .sama-ai-card { padding:17px 15px; border-radius:7px; }
  .sama-ai-card__head { margin-bottom:14px; }
  .sama-ai-mark { width:34px; height:34px; }
  .sama-ai-card__identity { gap:9px; }
  .sama-ai-card__identity h2 { font-size:1.02rem; }
  .sama-ai-summary__lead { font-size:.92rem; line-height:1.85; }
  .sama-ai-points li { font-size:.86rem; line-height:1.7; }
  .sama-ai-quick { gap:6px; }
  .sama-ai-quick__button { width:100%; border-radius:7px; padding:9px 10px; }
  .sama-ai-input-shell { grid-template-columns:1fr; }
  .sama-ai-input-shell textarea { min-height:70px; }
  .sama-ai-submit { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
  .sama-ai-quick__button,
  .sama-ai-submit { transition:none; }
  .sama-ai-ask.is-loading .sama-ai-status::before { animation:none; }
}
@media print {
  .sama-ai-ask { display:none!important; }
  .sama-ai-summary { box-shadow:none; break-inside:avoid; }
}
