/* ============================================================================
   دیلی میل فارسی — «TABLOID»
   Crimson masthead band, dense mosaic, oversized headlines, yellow accents.
   Loaded LAST: it owns the look.
   ========================================================================== */

:root{
  --brand:#c2102e; --brand-dark:#8f0b22; --brand-2:#ffd23f;
  --ink:#14161a; --text:#3a3f47; --muted:#6d747d; --faint:#9aa1aa;
  --bg:#ffffff; --bg-2:#f4f5f6; --bg-3:#e9ebed; --card:#ffffff;
  --border:#dcdfe3; --border-2:#eceef0;
  --heading-color:#14161a;
  --radius:0px; --radius-sm:2px; --shadow:none;
  --maxw:1340px; --gap:22px;
}
/* iranwire.css declares its dark palette on `:root, html[data-theme=dark]`, and
   that (0,1,1) selector outranks our plain `:root`. Repeat the tokens here so
   the site's own palette wins on a dark theme too. */
html[data-theme=dark],html:not([data-theme=light]){
  --brand:#c2102e; --brand-dark:#8f0b22; --brand-2:#ffd23f;
  --ink:#14161a; --text:#3a3f47; --muted:#6d747d; --faint:#9aa1aa;
  --bg:#ffffff; --bg-2:#f4f5f6; --bg-3:#e9ebed; --card:#ffffff;
  --border:#dcdfe3; --border-2:#eceef0;
  --heading-color:#14161a;
}

body{background:var(--bg-2);color:var(--text);font-size:15px}
.site-main,.site-main>.container{background:var(--bg)}
.container{max-width:var(--maxw);padding-inline:20px}
.site-main{padding-bottom:0}
h1,h2,h3,h4{color:var(--ink);letter-spacing:-.5px}
a{color:inherit}
::selection{background:var(--brand);color:#fff}

.site-header,.site-footer,.tabbar,.mobile-drawer,.drawer-backdrop{display:none !important}
.dm-header,.dm-footer{display:block}

/* ── utility bar ── */
.dm-top{background:#14161a;color:#b4bac2;font-size:12.5px}
.dm-top-in{display:flex;align-items:center;justify-content:space-between;height:34px;gap:14px}
.dm-lang{display:flex;gap:2px}
.dm-lang a{padding:3px 9px;font-weight:800;font-size:11.5px;letter-spacing:.5px;color:#b4bac2;border-radius:2px}
.dm-lang a:hover{color:#fff}
.dm-lang a.on{background:var(--brand);color:#fff}

/* ── masthead ── */
.dm-mast{background:#c2102e;border-bottom:4px solid #ffd23f}
.dm-mast-in{display:flex;align-items:center;gap:18px;min-height:80px}
.dm-logo{display:flex;align-items:center;gap:13px;flex:none;min-width:0}
.dm-logo img{height:46px;width:auto;background:transparent;border-radius:4px}
.dm-lockup{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.dm-lockup b{font-size:22px;font-weight:900;color:#fff;white-space:nowrap;letter-spacing:-.4px}
.dm-lockup i{font-style:normal;font-size:11.5px;font-weight:600;color:#ffd9df;margin-block-start:3px;white-space:nowrap}
.dm-search{flex:1;display:flex;align-items:center;max-width:430px;margin-inline:auto;
  background:#fff;border:0;border-radius:2px;overflow:hidden}
.dm-search input{flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:14px;
  padding:10px 14px;color:var(--ink);min-width:0}
.dm-search input::placeholder{color:var(--faint)}
.dm-search button{background:var(--brand);color:#fff;padding:11px 18px;font-weight:800;font-size:13px;flex:none}
.dm-mast-r{display:flex;align-items:center;gap:8px;flex:none}
.dm-ibtn{width:40px;height:40px;display:grid;place-items:center;border-radius:2px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);color:#fff;position:relative}
.dm-ibtn:hover{border-color:var(--brand);color:var(--brand)}
.dm-ibtn .saved-count{position:absolute;inset-block-start:-5px;inset-inline-end:-5px;min-width:17px;height:17px;
  background:var(--brand);color:#fff;font-size:10px;font-weight:800;border-radius:9px;display:none;place-items:center;padding:0 5px}
.dm-ibtn .saved-count:not(:empty){display:grid}

/* ── nav ── */
.dm-nav{background:#14161a;border-block:0;position:sticky;top:0;z-index:60}
.dm-nav-in{display:flex;align-items:center;gap:0;overflow-x:auto;scrollbar-width:none}
.dm-nav-in::-webkit-scrollbar{display:none}
.dm-nav a{padding:12px 15px;font-size:13.5px;font-weight:700;color:#cfd4da;white-space:nowrap;}
.dm-nav a:hover{color:#fff}
.dm-nav a.on{color:#14161a;background:#ffd23f}

/* ── ticker ── */
.dm-tick{display:flex;align-items:stretch;background:#ffd23f;height:40px;overflow:hidden;}
.dm-tick-lbl{flex:none;display:grid;place-items:center;padding:0 16px;background:var(--brand);color:#fff;
  font-size:12px;font-weight:900;letter-spacing:.8px}
.dm-tick-vp{flex:1;overflow:hidden;position:relative}
.dm-tick-track{display:flex;align-items:center;gap:42px;height:100%;white-space:nowrap;
  animation:dmtick 56s linear infinite;padding-inline-start:22px}
.dm-tick-track:hover{animation-play-state:paused}
.dm-tick-track a{font-size:13.5px;color:#14161a}
.dm-tick-track a:hover{color:#c2102e}
@keyframes dmtick{from{transform:translateX(0)}to{transform:translateX(-100%)}}
html[dir=rtl] .dm-tick-track{animation-name:dmtick-rtl}
@keyframes dmtick-rtl{from{transform:translateX(0)}to{transform:translateX(100%)}}

/* ── footer ── */
.dm-footer{background:#14161a;color:#aab0b8;margin-block-start:44px}
.dm-foot-top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:32px;padding-block:44px}
.dm-foot-brand img{height:50px;width:auto;background:transparent;margin-block-end:16px;border-radius:4px}
.dm-foot-brand p{font-size:13.5px;line-height:1.85;margin:0 0 18px;max-width:44ch}
.dm-foot-soc{display:flex;gap:8px}
.dm-foot-soc a{width:36px;height:36px;display:grid;place-items:center;border-radius:2px;
  background:rgba(255,255,255,.08);color:#aab0b8}
.dm-foot-soc a:hover{background:var(--brand);color:#fff}
.dm-foot h4{font-size:12px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase;color:#ffd23f;margin:0 0 16px}
.dm-foot ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:11px}
.dm-foot a{font-size:13.5px;color:#aab0b8}
.dm-foot a:hover{color:#fff}
.dm-foot-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-block:18px;
  border-top:1px solid rgba(255,255,255,.10);font-size:12.5px;flex-wrap:wrap}
.dm-foot-bar .lat{letter-spacing:2px;font-weight:800;opacity:.35}

/* ── drawer ── */
.dm-back{position:fixed;inset:0;background:rgba(0,0,0,.55);opacity:0;visibility:hidden;transition:.24s;z-index:90}
.dm-back.open{opacity:1;visibility:visible}
.dm-drawer{position:fixed;inset-block:0;inset-inline-end:0;width:min(320px,86vw);background:var(--card);
  z-index:100;transform:translateX(100%);transition:transform .28s cubic-bezier(.2,.7,.2,1);overflow-y:auto;padding:20px}
html[dir=rtl] .dm-drawer{transform:translateX(-100%)}
.dm-drawer.open{transform:translateX(0) !important}
.dm-drawer-h{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-block-end:16px;border-bottom:1px solid var(--border);margin-block-end:16px}
.dm-drawer-h img{height:40px;background:transparent}
.dm-drawer-h button{color:var(--muted);font-size:20px}
.dm-drawer form{display:flex;border:1px solid var(--border);border-radius:2px;margin-block-end:16px;overflow:hidden}
.dm-drawer form input{flex:1;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;padding:10px 12px;font-size:13.5px;min-width:0}
.dm-drawer form button{padding:0 13px;color:var(--muted)}
.dm-drawer nav{display:flex;flex-direction:column}
.dm-drawer nav a{padding:11px 4px;border-bottom:1px solid var(--border-2);font-size:14.5px;font-weight:700;color:var(--text)}
.dm-drawer nav a:hover{color:var(--brand)}
.dm-drawer .langs{display:flex;flex-wrap:wrap;gap:7px;margin-block-start:16px}
.dm-drawer .langs a{padding:6px 12px;border:1px solid var(--border);border-radius:2px;font-size:12.5px;font-weight:700;color:var(--muted)}
.dm-drawer .langs a.on{background:var(--brand);color:#fff;border-color:var(--brand)}

/* ── inherited chrome ── */
.saved-panel{background:var(--card);color:var(--text)}
.btn,.button,button.primary,.pagination .page-item.active .page-link{background:var(--brand);color:#fff;border-radius:2px}
.pagination .page-link{background:var(--card);border:1px solid var(--border);color:var(--text);border-radius:2px}
.chip,.tag{background:var(--bg-3);border:1px solid var(--border);color:var(--text);border-radius:2px}

@media (max-width:1000px){
  .dm-foot-top{grid-template-columns:1fr 1fr}
  .dm-search{display:none}
}
@media (max-width:640px){
  .dm-foot-top{grid-template-columns:1fr;gap:26px}
  .dm-logo img{height:38px} .dm-lockup b{font-size:16px} .dm-lockup i{display:none}
}

/* ══════════ TABLOID layout: splash + dense mosaic ══════════ */
.dm-splash{display:grid;grid-template-columns:1.25fr 1fr;gap:0;margin-block:20px 16px;background:var(--card);
  border:1px solid var(--border)}
.dm-splash-img{display:block;position:relative;min-height:400px;overflow:hidden}
.dm-splash-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s}
.dm-splash-img:hover img{transform:scale(1.04)}
.dm-splash-b{display:flex;flex-direction:column;justify-content:center;padding:30px 32px}
.dm-flag{align-self:flex-start;background:var(--brand);color:#fff;font-size:11.5px;font-weight:900;
  padding:5px 12px;letter-spacing:.8px;margin-block-end:14px;text-transform:uppercase}
.dm-splash-b h1{font-size:clamp(28px,3.4vw,46px);line-height:1.14;font-weight:900;margin:0 0 13px;letter-spacing:-1px}
.dm-splash-b h1 a:hover{color:var(--brand)}
.dm-splash-b p{font-size:15.5px;line-height:1.75;color:var(--text);margin:0 0 12px}
.dm-splash-b .m{font-size:12px;color:var(--faint);font-weight:700}

.dm-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-block-end:26px}
.dm-sc{display:block;background:var(--card);border:1px solid var(--border)}
.dm-sc-img{display:block;aspect-ratio:4/3;overflow:hidden}
.dm-sc-img img{width:100%;height:100%;object-fit:cover}
.dm-sc h3{font-size:14.5px;line-height:1.4;font-weight:800;margin:0;padding:11px 13px 13px;letter-spacing:-.3px}
.dm-sc:hover h3{color:var(--brand)}

.dm-sec{margin-block:28px}
.dm-sec-h{margin-block-end:16px;border-bottom:3px solid var(--brand)}
.dm-sec-h span{display:inline-block;background:var(--brand);color:#fff;font-size:14px;font-weight:900;
  padding:8px 18px;letter-spacing:.4px}
.dm-mosaic{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.dm-mc{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border)}
.dm-mc-img{display:block;aspect-ratio:4/3;overflow:hidden}
.dm-mc-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.dm-mc:hover .dm-mc-img img{transform:scale(1.05)}
.dm-mc-b{display:flex;flex-direction:column;padding:12px 14px 14px}
.dm-mc-b .c{font-size:10.5px;font-weight:900;color:var(--brand);letter-spacing:.8px;text-transform:uppercase;margin-block-end:5px}
.dm-mc-b h3{font-size:15px;line-height:1.42;font-weight:800;margin:0 0 6px;letter-spacing:-.35px}
.dm-mc:hover .dm-mc-b h3{color:var(--brand)}
.dm-mc-b .m{font-size:11px;color:var(--faint)}

.dm-two{display:grid;grid-template-columns:1fr 320px;gap:30px;margin-block:28px;align-items:start}
.dm-row{display:grid;grid-template-columns:130px 1fr;gap:14px;padding-block:14px;border-bottom:1px solid var(--border)}
.dm-row-img{display:block;aspect-ratio:4/3;overflow:hidden}
.dm-row-img img{width:100%;height:100%;object-fit:cover}
.dm-row-b{display:flex;flex-direction:column;justify-content:center}
.dm-row-b h3{font-size:16px;line-height:1.45;font-weight:800;margin:0 0 5px;letter-spacing:-.35px}
.dm-row:hover .dm-row-b h3{color:var(--brand)}
.dm-row-b .m{font-size:11px;color:var(--faint)}
.dm-rank{background:var(--card);border:1px solid var(--border)}
.dm-rank-h{padding:12px 16px;background:#14161a;color:#ffd23f;font-size:13.5px;font-weight:900}
.dm-rk{display:grid;grid-template-columns:30px 1fr;gap:11px;padding:12px 16px;border-bottom:1px solid var(--border-2);align-items:baseline}
.dm-rk:last-child{border-bottom:0}
.dm-rk b{font-size:19px;font-weight:900;color:var(--brand);font-variant-numeric:tabular-nums}
.dm-rk span{font-size:14px;line-height:1.5;color:var(--text)}
.dm-rk:hover span{color:var(--brand)}
@media (max-width:1050px){.dm-strip,.dm-mosaic{grid-template-columns:repeat(3,1fr)}.dm-two{grid-template-columns:1fr}}
@media (max-width:820px){.dm-splash{grid-template-columns:1fr}.dm-splash-img{min-height:260px}
  .dm-strip,.dm-mosaic{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.dm-strip,.dm-mosaic{grid-template-columns:1fr}.dm-row{grid-template-columns:100px 1fr}}

/* ══════════════════════════════════════════════════════════════════════════
   INNER-PAGE HEADING COLOURS
   iranwire.css is a DARK-FIRST base: it paints inner-page headings #fff with
   no theme guard, e.g. `.article > h1{color:#fff}` (0,1,1) which outranks
   theme.css's `.art-title{color:var(--heading-color)}` (0,1,0). On this light
   theme that is white-on-white. Re-assert them here (this sheet loads last).
   ══════════════════════════════════════════════════════════════════════════ */
.article > h1,
.art-title,
.rtv-head h1,
.dir-page > h1,
.dir-detail-head h1,
.search-head h1,
.page-head h1,
.pod-info h1{color:var(--ink)}

/* the base also shrinks the article headline to 28px, losing theme.css's 34px */
.article > h1,
.art-title{font-size:clamp(26px,2.6vw,36px);line-height:1.25;font-weight:900;
  font-family:var(--font-fa),var(--font-lat);letter-spacing:-.4px}

/* sub-headings inside the article body */
.article h2,.article h3,.article h4,
.art-body h2,.art-body h3,.art-body h4{color:var(--ink);font-weight:800}
.article h2,.art-body h2{font-size:22px;line-height:1.45;margin:26px 0 10px}
.article h3,.art-body h3{font-size:19px;line-height:1.5;margin:22px 0 8px}

/* lead / subtitle / body copy stay in the softer ink */
.art-lead,.art-subtitle{color:var(--text)}
.article p,.art-body p{color:var(--text)}

/* ══════════════════════════════════════════════════════════════════════════
   SIDEBAR / WIDGET COLOURS  (light theme)
   iranwire.css is dark-first with no theme guard, so the sidebar widgets on
   category, search and article pages come out white-on-white:
     .widget-title{color:#fff}            → heading invisible
     .mr-list .mr-title{color:#e8eaee}    → most-read titles nearly invisible
     .mr-plain li a{color:#d7e2f0 !important}
   Re-assert them here; `!important` only where the base used it.
   ══════════════════════════════════════════════════════════════════════════ */
.widget-title,
.widget-title.sm,
.widget-title.xs{color:var(--ink)}
.mr-list .mr-title{color:var(--ink)}
.mr-list li:hover .mr-title{color:var(--brand)}
.mr-list .mr-time{color:var(--muted)}
.mr-plain li a{color:var(--text) !important}
.sl-list li a,.sl-list li a:visited{color:var(--text)}
.sl-list li a:hover,.mr-plain li a:hover{color:var(--brand) !important}
.home2-side .widget,.editor-note,.m-side-top .widget{background:var(--card);border-color:var(--border)}
.widget{background:var(--card);border:1px solid var(--border)}
.widget-more{color:var(--brand)}
.mr-list .rank{background:color-mix(in srgb,var(--brand) 14%,transparent);color:var(--brand)}
.trend-chips a{background:var(--bg-3);color:var(--text);border:1px solid var(--border)}
.trend-chips a:hover{background:var(--brand);color:#fff;border-color:var(--brand)}

/* ══════════════════════════════════════════════════════════════════════════
   KILL THE INHERITED CSS "WATERMARK"
   iranwire.css:309 paints a pseudo-element over every hero/report/video image
   with the ORIGINAL clone's brand hardcoded in `content:"ایران وایر نیوز"`.
   It is a third badge on top of the real watermark that WatermarkService
   already burns into the stored file, so drop it rather than re-label it.
   ══════════════════════════════════════════════════════════════════════════ */
.hs-img::before,
.rep-card .rc-img::before,
.vp-card .vc-thumb::before,
.art-imgwrap::before,
.art-figure::before{content:none !important;display:none !important}

/* ══════════════════════════════════════════════════════════════════════════
   ARTICLE ANALYSIS BOXES  (چرا این خبر مهم است / پیشینه / اعداد مهم)
   The base sheet styles them for its own dark palette and hardcodes three
   accent colours that belong to no site here:
     .art-box{background:var(--surf-2)}   → a dark slab on a light page
     .art-box h4{color:#fff}              → invisible heading
     .abx-why|bg|num{border-inline-start-color:#00a5e3|#3b82f6|#12b886}
   Rebuild them from this site's own tokens so they read as part of the design.
   ══════════════════════════════════════════════════════════════════════════ */
.art-boxes{display:grid;gap:14px;margin:26px 0}
.art-box{
  background:var(--card);
  border:1px solid var(--border);
  border-inline-start:4px solid var(--brand);
  border-radius:var(--radius-sm,10px);
  padding:16px 18px;
  box-shadow:var(--shadow,none);
}
.art-box h4{
  color:var(--ink);
  font-size:14.5px;
  font-weight:900;
  margin:0 0 9px;
  letter-spacing:-.2px;
  display:flex;align-items:center;gap:8px;
}
.art-box p{color:var(--text);line-height:2;font-size:14.5px;margin:0}
.art-box strong,.art-box b{color:var(--ink)}

/* each box keeps its own accent, taken from this site's palette */
.art-box.abx-why{border-inline-start-color:var(--brand)}
.art-box.abx-bg {border-inline-start-color:var(--brand-dark,var(--brand))}
.art-box.abx-num{border-inline-start-color:var(--brand-2,var(--brand))}
.art-box.abx-why h4{color:var(--brand)}
.art-box.abx-bg  h4{color:var(--brand-dark,var(--brand))}
.art-box.abx-num h4{color:var(--brand-2,var(--brand))}

/* the investigative dossier block sits in the same family */
.art-invest{background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius-sm,10px);padding:16px 18px;margin:22px 0}
.art-invest h4,.art-invest h3{color:var(--ink)}
.art-invest p,.art-invest li{color:var(--text);line-height:2}
