.news-page { display:grid; gap:clamp(1rem,2.4vw,1.8rem); }
.news-toolbar { display:grid; grid-template-columns:minmax(18rem,1fr) minmax(9rem,.24fr) minmax(9rem,.24fr) minmax(8rem,.2fr) auto; gap:.75rem; align-items:end; padding:1rem; border:1px solid var(--line); border-radius:1.25rem; background:color-mix(in srgb,var(--bg-card) 90%,transparent); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.news-search { position:relative; display:block; }.news-search svg{position:absolute;inset-inline-start:1rem;top:50%;width:1.15rem;height:1.15rem;transform:translateY(-50%);fill:none;stroke:var(--text-faint);stroke-width:1.8;pointer-events:none}
.news-search input,.news-filter select{width:100%;min-height:3rem;border:1px solid var(--line-strong);border-radius:.9rem;background:var(--bg);color:var(--text);font:inherit}.news-search input{padding:.75rem 3rem .75rem 1rem}.news-filter{display:grid;gap:.35rem}.news-filter span{color:var(--text-faint);font-size:.7rem}.news-filter select{padding:.65rem .8rem}.news-search input:focus,.news-filter select:focus{outline:0;border-color:var(--c-gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--c-gold) 9%,transparent)}.news-result-count{color:var(--text-faint);font-size:.75rem;padding-bottom:.8rem;white-space:nowrap}
.news-page__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(.75rem,1.5vw,1rem); align-items:stretch; }
.news-page-card { min-width:0; min-height:8rem; border:1px solid var(--line); border-radius:1.15rem; background:var(--bg-card); overflow:hidden; transition:transform .22s,border-color .22s,box-shadow .22s; }
.news-page-card:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--c-gold) 48%,var(--line)); box-shadow:0 0 1.9rem rgba(0,0,0,.09); }.news-page-card[hidden]{display:none!important}
.news-page-card__open { width:100%; height:100%; min-height:8rem; display:grid; place-items:center; border:0; background:transparent; color:var(--text); padding:1.2rem; cursor:pointer; font:inherit; text-align:center; }
.news-page-card__open h2 { margin:0; font-size:clamp(1rem,1.35vw,1.18rem); line-height:1.9; }
.news-empty-filter { padding:2.5rem 1rem; text-align:center; border:1px dashed var(--line-strong); border-radius:1.2rem; color:var(--text-faint); }
.news-modal { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:clamp(.65rem,2.6vw,1.6rem); }.news-modal[hidden]{display:none!important}.news-modal__backdrop{position:absolute;inset:0;border:0;background:rgba(7,9,13,.72);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}
.news-modal__panel { position:relative; width:min(920px,100%); height:min(88vh,860px); display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line-strong); border-radius:1.4rem; background:var(--bg-card); box-shadow:0 2rem 7rem rgba(0,0,0,.35); }
.news-modal__head { flex:0 0 auto; display:flex; justify-content:flex-end; padding:.65rem .8rem .2rem; }.news-modal__close{width:2.25rem;height:2.25rem;border:1px solid var(--line);border-radius:.7rem;background:var(--bg-soft);color:var(--text);font-size:1.4rem;cursor:pointer}
.news-modal__content { flex:1 1 auto; min-height:0; overflow:hidden; padding:0 clamp(1rem,3vw,1.7rem) .9rem; }
.news-modal-article { height:100%; min-height:0; display:flex; flex-direction:column; }
.news-modal-article__lead { flex:0 0 auto; display:grid; grid-template-columns:minmax(8.5rem,30%) minmax(0,1fr); gap:clamp(1rem,2.5vw,1.6rem); align-items:center; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.news-modal-article__lead--no-image { grid-template-columns:1fr; }.news-modal-article__image{width:100%;aspect-ratio:4/3;max-height:13.5rem;object-fit:cover;border-radius:1rem}.news-modal-article__title-wrap h2{margin:0;font-size:clamp(1.45rem,3vw,2.35rem);line-height:1.55}
.news-modal-article__text { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:1rem .15rem 1rem .7rem; color:var(--text-dim); line-height:2.15; }.news-modal-article__text p{margin:0 0 1rem}
.news-modal-article__publish { flex:0 0 auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin:0; padding:.85rem 0 0; border-top:1px solid var(--line); }.news-modal-article__publish>div{display:flex;align-items:center;justify-content:center;gap:.45rem;min-width:0}.news-modal-article__publish dt{color:var(--text-faint);font-size:.7rem}.news-modal-article__publish dd{margin:0;color:var(--text);font-size:.76rem;font-weight:750}
.news-modal__actions { flex:0 0 auto; display:flex; align-items:center; justify-content:flex-end; gap:.55rem; padding:.75rem 1rem; border-top:1px solid var(--line); }.news-modal__paper{margin-inline-end:auto;display:flex;border:1px solid var(--line);border-radius:.75rem;overflow:hidden}.news-modal__paper button{border:0;background:transparent;color:var(--text-faint);font:inherit;font-size:.72rem;font-weight:800;padding:.45rem .65rem;cursor:pointer}.news-modal__paper button.is-active{background:var(--bg-soft);color:var(--c-gold)}
.news-modal__icon-action { width:2.65rem;height:2.65rem;display:grid;place-items:center;border:1px solid var(--line);border-radius:.8rem;background:var(--bg-soft);color:var(--text);cursor:pointer;transition:border-color .2s,color .2s,transform .2s }.news-modal__icon-action:hover{border-color:var(--c-gold);color:var(--c-gold);transform:translateY(-1px)}.news-modal__icon-action svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.news-print-sheet{display:none}body.news-modal-open{overflow:hidden}
@media(max-width:1120px){.news-page__grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.news-toolbar{grid-template-columns:1fr 1fr}.news-search{grid-column:1/-1}.news-result-count{padding:.2rem 0}.news-page__grid{grid-template-columns:repeat(2,1fr)}.news-modal-article__lead{grid-template-columns:minmax(7rem,34%) minmax(0,1fr)}}
@media(max-width:540px){.news-toolbar{grid-template-columns:1fr}.news-search{grid-column:auto}.news-page__grid{grid-template-columns:1fr}.news-modal__panel{height:min(92vh,860px)}.news-modal-article__lead{grid-template-columns:6.5rem minmax(0,1fr);gap:.8rem}.news-modal-article__image{border-radius:.8rem}.news-modal-article__publish{gap:.25rem}.news-modal-article__publish>div{flex-direction:column;gap:.1rem}.news-modal__actions{padding:.65rem .8rem}}

/* R206 — کارت خبر با جزئیات کامل به‌جز متن خبر */
.news-page-card { min-height: 0; display:flex; flex-direction:column; }
.news-page-card__media { margin:0; width:100%; aspect-ratio:16/9; overflow:hidden; background:var(--bg-soft); border-bottom:1px solid var(--line); }
.news-page-card__media img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .55s var(--ease-out); }
.news-page-card:hover .news-page-card__media img { transform:scale(1.035); }
.news-page-card__body { display:flex; flex:1; min-height:0; flex-direction:column; gap:.8rem; padding:1rem; }
.news-page-card__top { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.news-page-card__date { color:var(--text-faint); font-size:.72rem; white-space:nowrap; }
.news-page-card__body h2 { margin:0; color:var(--text); font-size:clamp(1rem,1.25vw,1.15rem); line-height:1.85; }
.news-page-card__publish { margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.35rem; padding:.65rem 0 0; border-top:1px solid var(--line); }
.news-page-card__publish>div { display:grid; gap:.08rem; text-align:center; }
.news-page-card__publish dt { color:var(--text-faint); font-size:.62rem; }
.news-page-card__publish dd { margin:0; color:var(--text-dim); font-size:.68rem; font-weight:700; }
.news-page-card__open { width:auto; height:auto; min-height:0; display:inline-flex; place-items:initial; align-items:center; justify-content:center; align-self:flex-start; margin-top:auto; border:1px solid color-mix(in srgb,var(--c-gold) 52%,var(--line)); border-radius:999px; background:transparent; color:var(--c-gold); padding:.48rem 1rem; cursor:pointer; font:inherit; font-size:.78rem; font-weight:800; text-align:center; }
.news-page-card__open:hover,.news-page-card__open:focus-visible { background:color-mix(in srgb,var(--c-gold) 10%,transparent); outline:0; }


/* R207 — موبایل: فقط فهرست اخبار اسکرول می‌شود. */
@media (max-width: 820px), (hover:none) and (pointer:coarse) {
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page),
  html[data-mobile-site-mode="full"] body:is(.hasht-news-page,.hasht-notices-page) {
    height:100dvh;
    overflow:hidden!important;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) #footer,
  html[data-mobile-site-mode="full"] body:is(.hasht-news-page,.hasht-notices-page) #footer { display:none!important; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-shell,
  html[data-mobile-site-mode="full"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-shell {
    height:100dvh;
    min-height:0;
    overflow:hidden;
    padding-top:calc(var(--mwa-header-h, var(--header-h)) + .55rem);
    padding-bottom:.65rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page,
  html[data-mobile-site-mode="full"] body:is(.hasht-news-page,.hasht-notices-page) .news-page {
    height:100%;
    min-height:0;
    grid-template-rows:auto minmax(0,1fr) auto;
    gap:.7rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page__grid,
  html[data-mobile-site-mode="full"] body:is(.hasht-news-page,.hasht-notices-page) .news-page__grid {
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    align-content:start;
    padding:.1rem .15rem .65rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page__grid::-webkit-scrollbar,
  html[data-mobile-site-mode="full"] body:is(.hasht-news-page,.hasht-notices-page) .news-page__grid::-webkit-scrollbar { display:none; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-toolbar,
  html[data-mobile-site-mode="full"] body:is(.hasht-news-page,.hasht-notices-page) .news-toolbar { flex:0 0 auto; }

  /* Web App: ردیف فشرده — تصویر راست، عنوان کنار تصویر، دکمه در چپ. */
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page__grid { grid-template-columns:1fr!important; gap:.55rem; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card {
    display:flex;
    flex-direction:row;
    align-items:stretch;
    min-height:6.2rem;
    border-radius:1rem;
    overflow:hidden;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__media {
    flex:0 0 5.6rem;
    width:5.6rem;
    aspect-ratio:auto;
    min-height:100%;
    border:0;
    border-inline-end:1px solid var(--line);
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__body {
    flex:1 1 auto;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-rows:auto auto auto;
    gap:.25rem .55rem;
    align-items:center;
    padding:.65rem .7rem;
    direction:ltr;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__body h2,
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__top,
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__publish { grid-column:2; direction:rtl; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__body h2 { grid-row:1; font-size:.88rem; line-height:1.75; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__top { grid-row:2; margin:0; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__publish { grid-row:3; padding-top:.35rem; gap:.2rem; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__publish dt { font-size:.52rem; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__publish dd { font-size:.57rem; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card__open {
    grid-column:1;
    grid-row:1 / 4;
    align-self:center;
    justify-self:start;
    direction:rtl;
    margin:0;
    padding:.42rem .72rem;
    font-size:.68rem;
    white-space:nowrap;
  }

  /* حالت سایت کامل: ظاهر کارت دسکتاپ حفظ می‌شود، اما کارت‌ها زیر هم هستند. */
  html[data-mobile-site-mode="full"] body:is(.hasht-news-page,.hasht-notices-page) .news-page__grid { grid-template-columns:1fr!important; gap:.8rem; }
  html[data-mobile-site-mode="full"] body:is(.hasht-news-page,.hasht-notices-page) .news-page-card { display:flex; flex-direction:column; }
}

/* R209 — Mobile Web App: search + modal filters, compact reading modal. */
.news-filter-trigger,
.news-filter-modal { display:none; }

.news-modal__close {
  width:2.2rem;
  height:2.2rem;
  display:grid;
  place-items:center;
  padding:.35rem;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--text-dim);
  cursor:pointer;
  box-shadow:none;
  transition:color .18s ease, opacity .18s ease;
}
.news-modal__close:hover,
.news-modal__close:focus-visible { color:var(--c-gold); outline:0; }
.news-modal__close svg { width:1.25rem; height:1.25rem; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; }

@media (max-width: 820px), (hover:none) and (pointer:coarse) {
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-toolbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) 3rem;
    align-items:center;
    gap:.55rem;
    padding:.6rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-search { grid-column:auto; min-width:0; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-search input {
    min-height:2.85rem;
    padding-block:.62rem;
    border-radius:.85rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter--desktop,
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-result-count { display:none!important; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-trigger {
    display:grid;
    place-items:center;
    width:3rem;
    height:3rem;
    padding:0;
    border:1px solid var(--line-strong);
    border-radius:.85rem;
    background:var(--bg);
    color:var(--text-dim);
    cursor:pointer;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-trigger[aria-expanded="true"],
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-trigger:focus-visible {
    border-color:var(--c-gold);
    color:var(--c-gold);
    outline:0;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-trigger svg {
    width:1.25rem;
    height:1.25rem;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal.is-open {
    position:fixed;
    inset:0;
    z-index:1200;
    display:grid;
    place-items:center;
    padding:1rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__backdrop {
    position:absolute;
    inset:0;
    border:0;
    background:rgba(7,9,13,.58);
    -webkit-backdrop-filter:blur(7px);
    backdrop-filter:blur(7px);
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__panel {
    position:relative;
    width:min(23rem,100%);
    display:grid;
    gap:.9rem;
    padding:1rem;
    border:1px solid var(--line-strong);
    border-radius:1.15rem;
    background:var(--bg-card);
    box-shadow:0 1.5rem 5rem rgba(0,0,0,.28);
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__head strong { font-size:.9rem; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__close {
    width:2rem;
    height:2rem;
    padding:0;
    border:0;
    background:transparent;
    color:var(--text-dim);
    font:inherit;
    font-size:1.35rem;
    line-height:1;
    cursor:pointer;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__body { display:grid; gap:.75rem; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__apply { width:100%; min-height:2.85rem; }

  /* Reading modal: lower, compact, and only the article text scrolls. */
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal {
    align-items:center;
    padding:.8rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal__panel {
    width:min(31rem,100%);
    height:min(72dvh,34rem);
    max-height:72dvh;
    border-radius:1.1rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal__head {
    padding:.35rem .55rem 0;
    min-height:2.4rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal__content {
    flex:1 1 auto;
    min-height:0;
    overflow:hidden!important;
    padding:0 .8rem .7rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article {
    height:100%;
    min-height:0;
    overflow:hidden;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article__lead {
    grid-template-columns:5.35rem minmax(0,1fr);
    gap:.7rem;
    padding-bottom:.65rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article__lead--no-image { grid-template-columns:1fr; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article__image {
    width:5.35rem;
    height:4.45rem;
    aspect-ratio:auto;
    max-height:none;
    border-radius:.7rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article__title-wrap h2 {
    font-size:1rem;
    line-height:1.75;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article__text {
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:.65rem .1rem .65rem .45rem;
    line-height:2;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article__publish {
    flex:0 0 auto;
    padding-top:.55rem;
    gap:.2rem;
  }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article__publish>div { flex-direction:column; gap:.06rem; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article__publish dt { font-size:.58rem; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal-article__publish dd { font-size:.64rem; }
  html[data-mobile-site-mode="webapp"] body:is(.hasht-news-page,.hasht-notices-page) .news-modal__actions { display:none!important; }
}


/* R274 final — desktop editorial toolbar + overflow-safe 2x Aparat card media. */
@media (min-width:821px) and (hover:hover) and (pointer:fine) {
  .news-toolbar { grid-template-columns:minmax(18rem,1fr) minmax(9rem,.24fr) minmax(9rem,.24fr) minmax(8rem,.2fr) auto; }
  body.hasht-notices-page .news-toolbar { grid-template-columns:minmax(18rem,1fr) minmax(10rem,.28fr) minmax(8rem,.22fr) auto; }
  .news-page-card--video,.news-card--video { overflow:visible; position:relative; z-index:1; }
  .news-page-card--video:hover,.news-card--video:hover { z-index:30; }
  .news-page-card--video .news-page-card__media.hasht-aparat-frame { border-radius:1.15rem 1.15rem 0 0; }
  .news-page-card--video .news-page-card__body { position:relative; z-index:0; background:var(--bg-card); border-radius:0 0 1.15rem 1.15rem; }
}


/* R274 root fix — editorial toolbar owns a higher stacking context than cards. */
.news-toolbar{position:relative;z-index:80;overflow:visible!important}
.news-page__grid{position:relative;z-index:1}
.news-toolbar .hasht-site-combobox-r276.is-open{z-index:2400}

/* R274 — mobile filter modal works for every <=820px/coarse mobile mode, not only webapp. */
@media (max-width:820px),(hover:none) and (pointer:coarse){
  body:is(.hasht-news-page,.hasht-notices-page) .news-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 3rem;align-items:center;gap:.55rem;padding:.6rem}
  body:is(.hasht-news-page,.hasht-notices-page) .news-search{grid-column:auto;min-width:0}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter--desktop,
  body:is(.hasht-news-page,.hasht-notices-page) .news-result-count{display:none!important}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter-trigger{display:grid!important;place-items:center;width:3rem;height:3rem;padding:0;border:1px solid var(--line-strong);border-radius:.85rem;background:var(--bg);color:var(--text-dim);cursor:pointer}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal:not(.is-open){display:none!important}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal.is-open{position:fixed!important;inset:0!important;z-index:17050!important;display:grid!important;place-items:center!important;padding:1rem!important}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__backdrop{position:absolute;inset:0;border:0;background:rgba(7,9,13,.64);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__panel{position:relative;z-index:1;width:min(23rem,100%);max-height:min(82dvh,38rem);overflow:visible;display:grid;gap:.9rem;padding:1rem;border:1px solid var(--line-strong);border-radius:1.15rem;background:var(--bg-card);box-shadow:0 1.5rem 5rem rgba(0,0,0,.28)}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__head{display:flex;align-items:center;justify-content:space-between;gap:1rem}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__body{display:grid;gap:.75rem;overflow:visible}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter-modal__apply{width:100%;min-height:2.85rem}
  body:is(.hasht-news-page,.hasht-notices-page).news-filter-modal-open{overflow:hidden!important}
}

/* R276 — desktop filter controls live on a dedicated row beneath search. */
@media (min-width:821px) and (hover:hover) and (pointer:fine){
  body:is(.hasht-news-page,.hasht-notices-page) .news-toolbar{
    grid-template-columns:repeat(3,minmax(10rem,1fr)) auto;
    align-items:end;
  }
  body:is(.hasht-news-page,.hasht-notices-page) .news-search{grid-column:1/-1}
  body.hasht-notices-page .news-toolbar{grid-template-columns:repeat(2,minmax(10rem,1fr)) auto}
  body.hasht-notices-page .news-search{grid-column:1/-1}
  body:is(.hasht-news-page,.hasht-notices-page) .news-result-count{align-self:end;justify-self:end;padding:.2rem 0 .75rem}
  body:is(.hasht-news-page,.hasht-notices-page) .news-filter{min-width:0}
  body:is(.hasht-news-page,.hasht-notices-page) .hasht-site-combobox-r276{width:100%}
}

/* R276 root mobile-filter contract: do not depend on WordPress body-class resolution. */
@media (max-width:820px),(hover:none) and (pointer:coarse){
  .news-page-shell .news-filter-trigger{display:grid!important;place-items:center!important}
  .news-page-shell .news-filter-modal:not(.is-open){display:none!important}
  .news-page-shell .news-filter-modal.is-open{position:fixed!important;inset:0!important;z-index:17050!important;display:grid!important;place-items:center!important;padding:1rem!important}
  .news-page-shell .news-filter-modal.is-open .news-filter-modal__panel{position:relative!important;z-index:1!important;display:grid!important}
}


/* R276 — video-news modal: no print/PDF footer; video + article body share one scroll region. */
.news-modal.is-video-news .news-modal__actions{display:none!important}
.news-modal.is-video-news .news-modal__content{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:1rem}
.news-modal.is-video-news .news-modal-article{height:auto!important;min-height:100%;overflow:visible!important;display:block!important}
.news-modal.is-video-news .news-modal-article__lead{margin-bottom:1rem}
.news-modal.is-video-news .news-modal-article__video{display:block!important;width:100%!important;aspect-ratio:16/9!important;height:auto!important;max-height:none!important;overflow:hidden!important;border-radius:1rem!important;margin:0 0 1rem!important}
.news-modal.is-video-news .news-modal-article__text{display:block!important;flex:none!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0 .15rem 1rem .7rem!important}
.news-modal.is-video-news .news-modal-article__publish{margin-top:.2rem}
@media(max-width:820px),(hover:none) and (pointer:coarse){
  .news-modal.is-video-news .news-modal__content{overflow-y:auto!important;padding:.2rem .8rem .8rem!important}
  .news-modal.is-video-news .news-modal-article{height:auto!important;overflow:visible!important}
  .news-modal.is-video-news .news-modal-article__video{aspect-ratio:16/9!important;min-height:0!important;border-radius:.85rem!important}
  .news-modal.is-video-news .news-modal-article__text{overflow:visible!important;max-height:none!important;padding:.25rem .1rem .8rem .35rem!important}
}

/* R276 — a video card must never be painted behind its own metadata or adjacent cards. */
@media(hover:hover) and (pointer:fine) and (min-width:821px){
  .news-page__grid{overflow:visible!important;isolation:auto!important}
  .news-page-card--video{overflow:visible!important;position:relative;z-index:2}
  .news-page-card--video:hover{z-index:410!important;transform:none!important}
  .news-page-card--video .news-page-card__media.hasht-aparat-frame{position:relative;z-index:4}
  .news-page-card--video .news-page-card__body{position:relative;z-index:1}
}
