/*
Theme Name: Akhbar Oman
Description: قالب أخبار عُمان - قالب فرعي من Ayyam News. تصميم أوف وايت دافئ بخط أسود قوي وترويسة مركزية.
Template: ayyam-news
Version: 1.3
Text Domain: akhbar-oman
Requires at least: 6.0
*/
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body,body.custom-background{background:#f7f3ea!important;color:#000;font-family:'Noto Naskh Arabic',serif;font-weight:600;font-size:21px;line-height:1.9;margin:0}
a{color:#000;text-decoration:none}a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
h1,h2,h3,h4,.ui{font-family:'Noto Kufi Arabic','Noto Sans Arabic',sans-serif;color:#000}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ao-top{border-bottom:1px solid #e3ded0;font:500 14px 'Noto Kufi Arabic',sans-serif;color:#444}
.ao-top .wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:7px;padding-bottom:7px;flex-wrap:wrap}
.ao-top a{color:#333;margin-left:14px}
.ao-top form{display:flex}.ao-top input[type=search]{font:500 14px 'Noto Kufi Arabic',sans-serif;border:1px solid #cfc9b8;background:#faf9f5;padding:3px 10px;width:190px}
.ao-top button{font:600 13px 'Noto Kufi Arabic',sans-serif;border:1px solid #111a2e;background:#111a2e;color:#fff;padding:3px 12px;cursor:pointer}
.ao-head .wrap{display:flex;justify-content:center;padding-top:14px;padding-bottom:12px}
.ao-head img{height:84px;width:auto;display:block}
.ao-nav{background:#fff;border-top:1px solid #e3ded0;border-bottom:3px solid #111a2e}
.ao-nav .wrap{display:flex;justify-content:center;overflow-x:auto;scrollbar-width:none}
.ao-nav a{font:700 17px 'Noto Kufi Arabic',sans-serif;padding:12px 20px;border-top:4px solid var(--c,#111a2e);color:#000;white-space:nowrap}
.ao-nav a.on{background:var(--c,#111a2e);color:#fff;text-decoration:none}
.tag{display:inline-block;color:#fff;font:700 13px 'Noto Kufi Arabic',sans-serif;padding:1px 11px;line-height:1.9;background:var(--c,#111a2e)}
.d{font:600 13px 'Noto Kufi Arabic',sans-serif;color:#444}
.hero{display:grid;grid-template-columns:1.9fr 1fr;gap:22px;margin:24px 0;align-items:stretch}
.herobox{background:#fff;display:flex;flex-direction:column}
.herobox .big{flex:1 1 auto;min-height:430px;background-size:cover;background-position:center;display:block}
.ht{padding:14px 22px 20px}.ht h2{margin:8px 0 4px;font-size:30px;line-height:1.6;font-weight:900}
.latest{background:#fff;border-top:4px solid #111a2e;padding:0 16px}
.latest h3{margin:0;padding:12px 0 8px;font-size:20px;font-weight:800;border-bottom:1px solid #e3ded0}
.li{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #eee}
.li .im{width:96px;height:72px;flex:none;background-size:cover;background-position:center;background-color:#e3ded0}
.li h4{margin:2px 0 0;font:800 16px/1.7 'Noto Kufi Arabic',sans-serif}
.sh{display:flex;align-items:center;margin:36px 0 16px;border-bottom:2px solid var(--c)}
.sh h2{margin:0;font-size:22px;color:var(--c);padding:0 0 6px;border-bottom:5px solid var(--c);margin-bottom:-2px}
.sh h2 a{color:var(--c)}.sh .more{margin-right:auto;font:600 14px 'Noto Kufi Arabic',sans-serif;color:#444}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{background:#fff}.card .im{height:176px;background-size:cover;background-position:center;display:block}
.card .t{padding:12px 16px 16px}.card h3{font-size:18.5px;line-height:1.75;margin:6px 0 4px;font-weight:800}
.box{background:#fff;padding:0 22px 10px;border-top:4px solid #444;margin-top:36px}
.box h2{font-size:21px;margin:12px 0;padding-bottom:6px;border-bottom:1px solid #e3ded0}
.box .it{padding:10px 0;border-top:1px solid #eee}.box .it h4{margin:0;font:800 17px/1.8 'Noto Kufi Arabic',sans-serif}
.crumbs{font:500 14px 'Noto Kufi Arabic',sans-serif;color:#555;margin:18px 0 6px}
.single-grid{display:grid;grid-template-columns:2.3fr 1fr;gap:34px;margin:10px 0}
.single-grid h1{font-size:40px;line-height:1.6;font-weight:800;margin:10px 0 8px}
.meta{font:600 15px 'Noto Kufi Arabic',sans-serif;color:#333;padding:10px 0;border-top:1px solid #d8d2c4;border-bottom:1px solid #d8d2c4;margin-bottom:20px}
.single-grid figure{margin:0 0 26px}.single-grid figure img{width:100%;display:block;height:auto}
.single-grid figcaption{font:500 17px/1.8 'Noto Kufi Arabic',sans-serif;color:#222;padding:10px 4px;border-bottom:3px solid var(--c,#111a2e);text-align:center}
.entry p{font-size:23px;font-weight:600;color:#000;line-height:2.2;margin:0 0 20px}
.entry h2,.entry h3{margin:28px 0 10px}
.entry a{text-decoration:underline}
.tags{margin:24px 0;font:600 15px 'Noto Kufi Arabic',sans-serif}
.cat-head{margin:24px 0 8px;border-bottom:3px solid var(--c,#111a2e)}.cat-head h1{font-size:34px;margin:0 0 6px;color:var(--c,#000)}.cat-head p{margin:0 0 10px;font-size:19px}
.pagination{margin:30px 0;text-align:center;font:700 16px 'Noto Kufi Arabic',sans-serif}.pagination .page-numbers{display:inline-block;padding:4px 12px;background:#fff;margin:0 3px}.pagination .current{background:#111a2e;color:#fff}
.ao-foot{background:#111a2e;color:#e6dfc8;margin-top:50px;padding:30px 0;font:500 15px 'Noto Kufi Arabic',sans-serif}
.ao-foot a{color:#fff;margin:0 8px}.ao-foot .row{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
@media(max-width:900px){
 body{font-size:19px}.wrap{padding:0 14px}
 .hero,.single-grid{grid-template-columns:1fr}.g3{grid-template-columns:1fr 1fr}
 .herobox .big{min-height:250px}.ht h2{font-size:23px}.single-grid h1{font-size:28px}.entry p{font-size:20px}
 .ao-head img{height:62px}.ao-nav .wrap{display:grid;grid-template-columns:repeat(4,1fr);overflow:visible;padding:0}.ao-nav a{padding:10px 4px;font-size:14.5px;text-align:center;white-space:normal;line-height:1.5;border-bottom:1px solid #eee}
 .ao-top .wrap{justify-content:center}.ao-top input[type=search]{width:140px}
}
@media(max-width:560px){.ao-nav .wrap{grid-template-columns:repeat(3,1fr)}.g3{grid-template-columns:1fr}.card .im{height:200px}}

.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 18px}
.share span{font-weight:700;font-size:15px;margin-inline-end:4px}
.share a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;background:var(--s);color:#fff;text-decoration:none;font-size:15px}
.share a svg{width:20px;height:20px;flex:none}
.share a b{font-weight:600}
.share a:hover{opacity:.88}
.share-end{border-top:1px solid #ddd5c6;margin-top:26px;padding-top:6px}

.herobox .big{flex:0 0 auto;min-height:0;aspect-ratio:1200/630;width:100%}

.card .im{height:auto;aspect-ratio:1200/630;width:100%}
.li .im{width:114px;height:60px}

/* share buttons: copy/native buttons share the link style; toast */
.share button{font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:999px;background:var(--s);color:#fff;font-size:15px}
.share button[hidden]{display:none}
.share button svg{width:20px;height:20px;flex:none}
.share button b{font-weight:600}
.share button:hover{opacity:.88}
#share-toast{position:fixed;bottom:18px;inset-inline:16px;margin:auto;max-width:420px;background:#111a2e;color:#fff;padding:12px 16px;border-radius:10px;font-size:15px;line-height:1.6;text-align:center;z-index:9999;box-shadow:0 4px 18px rgba(0,0,0,.25)}
#share-toast[hidden]{display:none}

/* mobile headline repair */
@media(max-width:700px){.g3{grid-template-columns:1fr}.card .im{height:auto;aspect-ratio:16/9}.card h3{font-size:19px;line-height:1.8}.li{display:block}.li .im{display:none}.li h4{font-size:18px;line-height:1.8;margin-top:6px}.latest{padding:0 14px}}

/* responsive bug repair: archive grid was forced to 2 columns by an inline style */
.g2{grid-template-columns:repeat(2,1fr)}
@media(max-width:1000px){.hero,.single-grid{grid-template-columns:1fr}}
@media(max-width:700px){
 .g2,.g3{grid-template-columns:1fr!important}
 .cat-head h1{font-size:28px}.cat-head p{font-size:17px}
 .ao-nav .wrap{display:flex;flex-wrap:wrap;justify-content:center;padding:0}
 .ao-nav a{flex:0 0 auto;padding:8px 7px;font-size:13px;line-height:1.5;white-space:nowrap;border-bottom:0}
}
body a{color:#000}

/* home v2: lead + mixed visual cards (no photos without rights: designed section visuals) */
.topgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;align-items:stretch}
.lead{grid-column:span 2;grid-row:span 3;position:relative;background:#fff;display:flex;flex-direction:column;min-height:360px}
.lead .im{flex:1 1 auto;min-height:240px;display:block;background-size:cover;background-position:center}
.lead .im.vis{background:linear-gradient(135deg,var(--c),#0b1220)}
.lt{padding:16px 20px 20px}.lt h2{font-size:30px;line-height:1.6;margin:8px 0 6px;font-weight:800}
.card .im.vis,.li .im.vis,.lead .im.vis{display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--c),#0b1220)}
.vis svg{width:44%;max-width:120px;height:auto;opacity:.92}
.li .im.vis svg{width:56%}
.card .im.vis{height:150px}
.tag.pv{background:#777;margin-inline-start:6px}
.topgrid .card .im{height:130px}
@media(max-width:1000px){.topgrid{grid-template-columns:repeat(2,1fr)}.lead{grid-column:span 2;grid-row:auto}}
@media(max-width:700px){
 .topgrid{grid-template-columns:1fr;gap:0;background:#fff}
 .lead{grid-column:auto;min-height:0}.lead .im{flex:none;height:190px;min-height:0}.lt h2{font-size:23px}
 .topgrid .card,.secgrid .card{display:grid;grid-template-columns:84px 1fr;gap:12px;padding:12px 14px;border-top:1px solid #e3ded0;align-items:start}
 .topgrid .card .im,.secgrid .card .im{height:84px;width:84px}
 .topgrid .card .t,.secgrid .card .t{padding:0}.topgrid .card h3,.secgrid .card h3{font-size:17px;line-height:1.7;margin:4px 0}
 .secgrid{background:#fff;gap:0}
 .vis svg{width:52%}
}

/* lead overlay + 2x2 beside lead, last two cards span 2 columns */
.lead{grid-row:span 2;min-height:430px;color:#fff;overflow:hidden}
.lead .im{position:absolute;inset:0;height:auto;min-height:0}
.lead .im.vis svg{width:30%;max-width:150px;margin-top:-60px}
.lt{position:relative;margin-top:auto;padding:70px 22px 20px;background:linear-gradient(transparent,rgba(5,10,20,.88));}
.lt h2{margin:8px 0 6px}.lt h2 a,.lt .d{color:#fff}.lt .d{opacity:.85}
.topgrid .card:nth-of-type(n+6){grid-column:span 2}
@media(max-width:1000px){.lead{grid-row:auto}.topgrid .card:nth-of-type(n+6){grid-column:auto}}
@media(max-width:700px){.lead{min-height:300px}.lt{padding-top:60px}.lt h2{font-size:22px}.lead .im{height:auto}}
@media(max-width:700px){.lead .im.vis{align-items:flex-start;padding-top:26px}.lead .im.vis svg{width:20%;max-width:80px;margin-top:0}}
/* v3: compact lead (one row), no tall color block */
.lead{grid-row:span 1;min-height:300px}
.topgrid .card:nth-of-type(n+6){grid-column:auto}
.lead .im.vis svg{width:18%;max-width:84px;margin-top:-70px}
.lt{padding-top:50px}.lt h2{font-size:28px}
@media(max-width:700px){.lead{min-height:300px}.lead .im.vis svg{margin-top:0;max-width:80px}}
.single-grid{grid-template-columns:minmax(0,2.3fr) minmax(0,1fr)}
.single-grid>*{min-width:0}
.entry,.entry *{overflow-wrap:anywhere}
@media(max-width:1000px){.single-grid{grid-template-columns:minmax(0,1fr)}}
.tag.pv.gap{background:#b3261e}.tag.pv.ok{background:#2e7d32}
/* v4: photo lead = image first, headline below (no overlay on faces); fallback visuals small */
.lead.ph{color:#111;min-height:0;background:#fff;display:flex;flex-direction:column;overflow:visible}
.lead.ph .im{position:relative;inset:auto;height:300px;min-height:0;flex:none}
.lead.ph .lt{background:none;padding:16px 22px 20px;margin-top:0}
.lead.ph .lt h2 a,.lead.ph .lt .d{color:#000}
.topgrid .card .im.vis{height:84px}
.vis svg{max-width:56px}
@media(max-width:700px){.lead.ph .im{height:230px}.lead.ph .lt{padding:14px 16px 18px}.topgrid .card .im.vis{height:84px}}

/* v1.2: single article must not widen the page on phones */
.entry img,.entry iframe,.entry video,.entry table{max-width:100%;height:auto}
