/* تم مجله «روزنامه»: سرصفحهٔ وسط‌چین با خط دوگانه، خبر اصلی، فهرست رتبه‌دار، کارت افقی */
:root{--accent:#b83227;--accent-ink:#fff;--bg:#faf7f2;--surface:#fffdf9;--ink:#211b15;--muted:#645847;--line:#e3d9c9;--soft:#f1e9db;--radius:2px;--radius-lg:4px;--e1:none;--e2:0 1px 0 rgba(0,0,0,.05);--shadow:none;--rule:4px;--fbg:#211b15;--fink:#d9cfc0;--fhead:#fff7ea;--fline:#4d4234}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--accent:#ff8374;--accent-ink:#2a1210;--bg:#15110d;--surface:#1d1710;--ink:#f3eadb;--muted:#bcae98;--line:#372c20;--soft:#271f16;--fbg:#0d0a07;--fink:#bcae98;--fhead:#f3eadb;--fline:#372c20}}
:root[data-theme=dark]{--accent:#ff8374;--accent-ink:#2a1210;--bg:#15110d;--surface:#1d1710;--ink:#f3eadb;--muted:#bcae98;--line:#372c20;--soft:#271f16;--fbg:#0d0a07;--fink:#bcae98;--fhead:#f3eadb;--fline:#372c20;color-scheme:dark}
.theme-magazine[data-o-rules=thin]{--rule:1px}

.theme-magazine h1,.theme-magazine h2,.theme-magazine h3{letter-spacing:0}
.theme-magazine .btn{border-radius:2px}
.theme-magazine .icon-btn{border-radius:2px}
.theme-magazine .chip{background:none;border-radius:0;padding:0;min-height:22px;color:var(--at);font-weight:700;font-size:.8rem}

/* ----- سرصفحه ----- */
.theme-magazine .site-header{background:var(--bg);border-bottom:0}
.theme-magazine .search input{border-radius:0;border:1px solid var(--ink);height:40px;background:transparent;font-size:.88rem}
.theme-magazine .search .btn{border-radius:0;min-height:40px;font-size:.85rem}
.theme-magazine .sugg{border-radius:0;border-color:var(--ink)}
@media (min-width:900px){
  .theme-magazine .site-header{position:static}
  .theme-magazine .bar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"s t" "b b" "g g";gap:0 16px;padding-block:14px 0}
  .theme-magazine .search{grid-area:s;flex:none;margin:0;width:100%;max-width:340px;justify-self:start}
  .theme-magazine .tools{grid-area:t;margin:0}
  .theme-magazine .brand{grid-area:b;justify-self:center;font-size:clamp(2.6rem,6vw,4.1rem);font-weight:700;letter-spacing:-.01em;padding:14px 8px 4px;margin-top:10px;border-top:var(--rule) solid var(--ink);width:100%;justify-content:center}
  .theme-magazine .brand-tag{grid-area:g;display:block;margin:0;text-align:center;font-size:.92rem;color:var(--muted);padding:6px 0 10px;border-bottom:1px solid var(--ink);box-shadow:0 3px 0 -1px var(--bg),0 4px 0 -1px var(--ink)}
  .theme-magazine .cats{margin-top:6px}
  .theme-magazine .cats ul{justify-content:safe center;padding-block:0;-webkit-mask-image:none;mask-image:none;gap:0}
  .theme-magazine .cats a{border-radius:0;border:0;min-height:44px;padding:0 18px;font-weight:700;font-size:.92rem}
  .theme-magazine .cats li+li{border-inline-start:1px solid var(--line)}
  .theme-magazine .cats a:hover{background:none;color:var(--at)}
  .theme-magazine .cats a[aria-current=page]{background:none;color:var(--at);box-shadow:inset 0 -3px 0 var(--accent)}
  .theme-magazine .sec-cats{display:none}
}
@media (max-width:899px){.theme-magazine .site-header{border-bottom:var(--rule) solid var(--ink)}.theme-magazine .brand{font-size:1.4rem}}

/* ----- صفحهٔ اول روزنامه‌ای ----- */
.theme-magazine .front{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,1fr);gap:0;margin-bottom:44px;padding-top:6px}
.theme-magazine .front-main{padding-inline-end:32px;border-inline-end:1px solid var(--line);min-width:0}
.theme-magazine .ranked{padding-inline-start:32px;min-width:0}
.theme-magazine .lead-story .ls-img{display:block;aspect-ratio:16/9;background:var(--soft);overflow:hidden}
.theme-magazine .lead-story .ls-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
@media (hover:hover){.theme-magazine .lead-story:hover .ls-img img{transform:scale(1.03)}}
.theme-magazine .ls-body{padding-top:16px}
.theme-magazine .ls-title{font-size:clamp(1.55rem,3.4vw,2.5rem);line-height:1.5;font-weight:700;margin:4px 0 8px;text-wrap:balance}
.theme-magazine .ls-title a{color:var(--ink);text-decoration:none}
.theme-magazine .ls-title a:hover{color:var(--at)}
.theme-magazine .ls-ex{color:var(--muted);font-size:1.02rem;margin-bottom:14px;max-width:60ch}
.theme-magazine .ls-foot{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap}
.theme-magazine .ls-foot .btn{background:transparent;color:var(--ink);border:1px solid var(--ink)}
.theme-magazine .ls-foot .btn:hover{background:var(--ink);color:var(--bg);filter:none}
.theme-magazine .mini-stories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:28px;padding-top:22px;border-top:1px solid var(--ink)}
.theme-magazine .mini-stories .rank-row{display:block}
.theme-magazine .mini-stories .rr-img{display:block;aspect-ratio:4/3;margin-bottom:8px}
.theme-magazine .ranked h2{font-size:1.15rem;margin:0 0 6px;padding-top:12px;border-top:var(--rule) solid var(--ink)}
.theme-magazine .rank-row{display:flex;align-items:center;gap:12px;padding-block:14px;border-bottom:1px solid var(--line)}
.theme-magazine .rank-row .rk{flex:none;width:34px;text-align:center;font-size:2rem;font-weight:700;line-height:1;color:var(--at)}
.theme-magazine .rr-img{flex:none;width:76px;aspect-ratio:1/1;background:var(--soft);overflow:hidden;display:block}
.theme-magazine .rr-img img{width:100%;height:100%;object-fit:cover;display:block}
.theme-magazine .rr-body{min-width:0;display:flex;flex-direction:column;gap:2px}
.theme-magazine .rr-title{font-size:.95rem;margin:0;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.theme-magazine .rr-title a{color:var(--ink);text-decoration:none}
.theme-magazine .rr-title a:hover{color:var(--at);text-decoration:underline}
.theme-magazine .mini-stories .rank-row{border:0;padding:0}
@media (max-width:899px){
  .theme-magazine .front{grid-template-columns:1fr}
  .theme-magazine .front-main{padding-inline-end:0;border-inline-end:0}
  .theme-magazine .ranked{padding-inline-start:0;margin-top:28px}
}
@media (max-width:560px){.theme-magazine .mini-stories{grid-template-columns:1fr;gap:0}.theme-magazine .mini-stories .rank-row{display:flex;padding-block:12px;border-bottom:1px solid var(--line)}.theme-magazine .mini-stories .rr-img{width:76px;margin:0}}

/* هیروی ساده (وقتی صفحهٔ اول روزنامه‌ای خاموش است) */
.theme-magazine .hero{display:block;border-radius:0;border:0;border-top:var(--rule) solid var(--ink);border-bottom:1px solid var(--ink);background:none;text-align:center;padding:clamp(24px,5vw,48px) 0;margin-bottom:36px}
.theme-magazine .hero::before{display:none}
.theme-magazine .hero-copy{align-items:center}
.theme-magazine .hero h1{font-size:clamp(1.9rem,5vw,3rem)}
.theme-magazine .hero .trust-strip{display:none}
.theme-magazine .search-hero{margin-inline:auto}
.theme-magazine .search-hero input{height:52px;box-shadow:none}
.theme-magazine .search-hero .btn{min-height:52px;border-radius:0}

/* ----- بخش‌ها: خط ضخیم بالا ----- */
.theme-magazine .sec-head,.theme-magazine section>h2{border-top:var(--rule) solid var(--ink);padding-top:10px}
.theme-magazine .sec-head h2,.theme-magazine section>h2{font-size:1.5rem}
.theme-magazine .sec-head h2::before,.theme-magazine section>h2::before{display:none}
.theme-magazine .sec-head a{background:none;border-radius:0;padding:0;font-weight:700;min-height:44px}
.theme-magazine .sec-head a:hover{background:none;text-decoration:underline}
.theme-magazine .cat-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.theme-magazine .cat-grid a{border-radius:0;box-shadow:none;border-width:0 0 1px;background:none;min-height:56px;padding-inline:2px}
.theme-magazine .cat-grid .ico{display:none}

/* ----- کارت افقی ----- */
.theme-magazine .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 36px}
.theme-magazine[data-o-listcols="1"] .grid{grid-template-columns:1fr}
.theme-magazine .card{flex-direction:row;align-items:stretch;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;overflow:visible;padding-block:18px;transform:none}
@media (hover:hover){.theme-magazine .card:hover{transform:none;box-shadow:none;border-color:var(--line)}.theme-magazine .card:hover .card-title a{color:var(--at)}}
.theme-magazine .card-img{flex:0 0 36%;max-width:190px;aspect-ratio:4/3;align-self:flex-start}
.theme-magazine[data-o-thumb=l] .card-img{flex-basis:44%;max-width:260px}
.theme-magazine[data-o-thumb=s] .card-img{flex-basis:28%;max-width:120px}
.theme-magazine .card-body{padding:0 16px;gap:4px}
.theme-magazine .card-title{font-size:1.1rem;-webkit-line-clamp:3;line-height:1.7}
.theme-magazine .card-foot{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding-top:4px}
.theme-magazine .card-foot .btn{background:none;border:0;padding:0;min-height:40px;color:var(--at);text-decoration:underline;font-size:.85rem}
.theme-magazine .card-foot .btn:hover{background:none;color:var(--at)}
.theme-magazine .card:has(.card-title a:focus-visible){outline-offset:-2px}
@media (max-width:899px){.theme-magazine .grid{grid-template-columns:1fr}}
@media (max-width:640px){
  .theme-magazine .grid.rail{display:grid;overflow:visible;margin-inline:0;padding:0;scroll-snap-type:none}
  .theme-magazine .grid.rail .card{flex:none;max-width:none}
  .theme-magazine .card-img{flex-basis:34%;max-width:130px}
  .theme-magazine .card-foot .btn-sm{padding:0}
}
.theme-magazine .sorts a,.theme-magazine .pager a,.theme-magazine .pager span,.theme-magazine .tag-list a{border-radius:0}
.theme-magazine .toolbar{border-bottom:1px solid var(--ink);padding-bottom:12px}

/* ----- محصول ----- */
.theme-magazine .product,.theme-magazine .prose{border-radius:0;border:0;border-top:var(--rule) solid var(--ink);background:none;padding-inline:0}
.theme-magazine .p-info h1{font-size:clamp(1.8rem,3.6vw,2.6rem);line-height:1.5;font-weight:700}
.theme-magazine .p-media img,.theme-magazine .p-media .noimg{border-radius:0;border:0}
.theme-magazine .buy{border-radius:0;background:var(--soft);border:0;border-top:3px solid var(--accent)}
.theme-magazine .p-desc{border-top:1px solid var(--ink)}
.theme-magazine .p-desc p{font-size:1.08rem}
.theme-magazine .share,.theme-magazine .desc-more{border-radius:0}
.theme-magazine .sticky-cta{border-radius:0}

/* ----- پاورقی: تیره، چهارستونه ----- */
.theme-magazine .site-footer{border-top:var(--rule) solid var(--accent);margin-top:20px}
.theme-magazine .foot-brand .brand{font-size:1.7rem}
.theme-magazine .foot-badges li{border-radius:0}
.theme-magazine .foot-note{border-radius:0;border-width:0 0 0 3px;border-inline-start:3px solid var(--accent);border-inline-end:0;background:none}
.theme-magazine .foot-col h2,.theme-magazine .foot-note h2{font-size:1rem;border-bottom:1px solid var(--fline);padding-bottom:8px}
.theme-magazine .to-top{border-radius:0}
