@font-face{font-family:Vazirmatn;src:url("../fonts/Vazirmatn-Variable.woff2") format("woff2");font-weight:100 900;font-display:swap}
:root{--bg:#0d1f1d;--bg2:#081614;--panel:#112320;--chip:#1a3330;--line:#1e3a37;--text:#e8f0ef;--muted:#7ea8a2;--accent:#f7941d;--accent-ink:#fff;--link-hover:#faa940;--chip-text:#b8d4d0;--border-strong:#2a4a46;--btn-hover-bg:#e0820f;--poem-grad-a:#112320;--poem-grad-b:#0d1f1d;--accent2:#ffc158;--teal:#1a7a6e;--teal-dark:#0f5a50;--teal-light:#2a9a8a;color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Vazirmatn,Tahoma,sans-serif;font-size:15px;line-height:1.7}
a{color:inherit;text-decoration:none}
a:hover,a:focus-visible{color:var(--link-hover)}
img{max-width:100%;height:auto}
h1,h2,h3{margin:0}
.vh,.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip{position:absolute;top:-60px;right:12px;background:var(--accent);color:var(--accent-ink);padding:10px 16px;border-radius:8px;z-index:100}
.skip:focus{top:8px}
.wrap{max-width:1400px;margin:0 auto}
.site-header{background:rgba(8,22,20,.95);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:100;backdrop-filter:blur(14px)}
.header-in{padding:8px 24px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:20px;color:var(--teal-light);letter-spacing:-.3px}
.brand img{width:auto;height:36px;display:block}
.brand span{color:var(--text);font-weight:900}
.header-menu ul{display:flex;gap:4px;list-style:none;margin:0;padding:0;flex-wrap:wrap;font-size:14px}
.header-menu a{display:block;padding:8px 14px;border-radius:8px;font-weight:500}.header-menu a:hover{background:var(--chip);color:var(--text)}
.header-menu .block-title,.header-search .block-title,.header-user .block-title,.chips-bar .block-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.header-search{flex:1;min-width:180px}
.header-search form{display:flex;gap:8px}
.header-search .form-item{flex:1;margin:0}
.header-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.header-search input[type=search],.header-search input[type=text]{width:100%;height:40px;border-radius:8px;border:1px solid var(--border-strong);background:var(--panel);color:var(--text);padding:0 14px;font-family:inherit;font-size:14px}.header-search input[type=search]:focus,.header-search input[type=text]:focus{outline:none;border-color:var(--teal-light)}
.header-search input[type=submit]{height:40px;border-radius:8px;border:0;background:var(--teal);color:#fff;padding:0 18px;font-family:inherit;cursor:pointer;font-weight:700}.header-search input[type=submit]:hover{background:var(--teal-light)}
.header-user ul{display:flex;gap:10px;list-style:none;margin:0;padding:0}
.header-user a{display:block;background:var(--teal);color:#fff;font-weight:700;font-size:14px;padding:9px 20px;border-radius:8px;white-space:nowrap}.header-user a:hover{background:var(--teal-light);color:#fff}
.header-user li+li a{background:transparent;color:var(--text);border:1px solid var(--border-strong);border-radius:8px}
.chips-bar ul{display:flex;gap:8px;list-style:none;margin:0;padding:12px 24px 0;overflow-x:auto;scrollbar-width:none}
.chips-bar a{display:block;flex:none;padding:7px 18px;border-radius:6px;background:var(--chip);color:var(--chip-text);font-size:13px;font-weight:500;white-space:nowrap}
.chips-bar a:hover{background:var(--chip);color:var(--text)}.chips-bar a.is-active{background:var(--teal);color:#fff;border-radius:6px}
.highlighted{padding:12px 24px 0}
.hero-grid{display:grid;grid-template-columns:2fr 1fr;gap:10px;padding:10px 24px 0}
.hero-card{position:relative;min-height:320px;height:100%;border-radius:10px;overflow:hidden}
.hero-card img,.hero-card .hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-card .field,.hero-card .field__item,.hero-card picture{display:contents}
.hero-over{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.92) 0 32%,rgba(0,0,0,.35) 60%,rgba(0,0,0,0) 100%);padding:24px 28px;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;align-items:flex-start}
.hero-title{font-size:26px;line-height:1.4;font-weight:800;max-width:460px}
.hero-text{font-size:14px;line-height:1.9;color:#C4D2CE;max-width:420px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hero-text p{margin:0}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:14px;padding:10px 24px;border-radius:7px}
.btn:hover{color:var(--accent-ink);background:var(--btn-hover-bg);transform:translateY(-1px)}
.region-hero,.region-hero .views-row{height:100%}
.region-hero .view-content,.region-hero [class*="js-view-dom-id"]{display:block;height:100%}
.region-hero-side{min-width:0}
.region-hero-side .block-title{font-size:15px;font-weight:800;padding:2px 2px 6px}
.region-hero-side .view-content,.region-hero-side [class*="js-view-dom-id"]{display:flex;flex-direction:column;gap:6px}
.region-hero-side .c{display:flex;align-items:center;gap:10px;width:auto;padding:7px;border-radius:7px;background:var(--panel);border:1px solid var(--line)}
.region-hero-side .t{width:88px;flex:none;aspect-ratio:16/9;border-radius:6px}
.region-hero-side .c-body{min-width:0;flex:1}
.block-views{position:relative}
.block-views .block-title{font-size:16px;font-weight:800;padding:0 24px;margin:20px 0 6px;letter-spacing:-.2px}
.block-views .more-link{position:absolute;top:0;left:24px;font-size:13px}
.block-views .more-link a{display:block;color:var(--muted);padding:8px 0;font-size:13px;font-weight:500}.block-views .more-link a:hover{color:var(--accent)}
[class*="region-row-"] .view-content,[class*="region-row-"] [class*="js-view-dom-id"]{display:flex;gap:12px;overflow-x:auto;padding:2px 24px 10px;scrollbar-width:none;counter-reset:rk}
[class*="region-row-"] .view-content::-webkit-scrollbar,[class*="region-row-"] [class*="js-view-dom-id"]::-webkit-scrollbar{display:none}
[class*="region-row-"] .views-row{flex:none}
.c{display:block;width:160px;min-width:0}
.t{position:relative;display:block;overflow:hidden;border-radius:7px;aspect-ratio:1/1;background:#1a1a1a}
.t img,.t>svg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.t .field,.t .field__item,.t picture{display:contents}
.g0{background:#0f2825}
.g1{background:#112a28}
.g2{background:#0d2420}
.g3{background:#132820}
.g4{background:#0e2622}
.g5{background:#112b26}
.c-title{font-size:13px;font-weight:600;margin-top:5px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .15s}
.region-hero-side .c-title{margin-top:0}
.c-sub{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-sub .field,.c-sub .field__item{display:inline}
.pb{position:absolute;bottom:6px;left:6px;width:26px;height:26px;border-radius:13px;background:var(--accent);color:var(--accent-ink);display:flex;align-items:center;justify-content:center;opacity:.92}
/* 1.9.8: remove the decorative orange play badge from all card covers */
.pb{display:none !important}
/* 1.9.8: hide the RSS "Subscribe to ..." feed icon on term pages */
.feed-icon{display:none}
/* 1.9.8: hide the empty dark footer strip */
.site-footer:has(.wrap:empty){display:none}
/* 1.9.8: audio quality selector (128 / 320 kbps) */
.mh-quality{display:inline-flex;gap:4px;align-items:center}
.mh-quality__btn{min-width:52px;padding:7px 10px;font-size:13px;border-radius:8px;border:1px solid var(--border-strong);background:var(--panel);color:var(--text);cursor:pointer;font-weight:700}
.mh-quality__btn:hover{border-color:var(--teal-light);color:var(--teal-light)}
.mh-quality__btn.is-active{background:var(--teal);border-color:var(--teal);color:#fff}
.d{position:absolute;bottom:6px;right:6px;font-size:11px;line-height:1.6;background:rgba(0,0,0,.7);color:#fff;padding:1px 6px;border-radius:4px}
.c:hover .t,.c:focus-within .t{outline:2px solid var(--teal-light);outline-offset:1px}.c:hover .c-title{color:var(--teal-light)}
.region-row-ranked .views-row{position:relative;width:160px;counter-increment:rk}
.region-row-ranked .views-row::before{content:counter(rk,persian);position:absolute;top:6px;right:8px;z-index:2;font-size:36px;font-weight:900;line-height:1;color:var(--accent);text-shadow:0 2px 8px rgba(0,0,0,.75),0 1px 3px rgba(0,0,0,.6);pointer-events:none}
.region-row-ranked .mh-card,.region-row-ranked .c{width:100%}
.region-row-ranked .mh-card__cover,.region-row-ranked .t{aspect-ratio:2/3}
.region-row-artists .c{width:92px;text-align:center}
.region-row-artists .t{border-radius:50%}
.region-row-artists .pb,.region-row-artists .d{display:none}
.inner{padding:24px}
.inner h1{font-size:28px;font-weight:800;margin-bottom:16px}
.inner a{color:var(--accent)}
.inner .field--name-body{line-height:2}
.site-footer{background:#060f0e;border-top:1px solid var(--line);margin-top:28px;color:var(--muted);font-size:13px}
.site-footer .wrap{padding:24px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center}
.site-footer ul{display:flex;gap:18px;list-style:none;margin:0;padding:0}
.site-footer .block-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media (prefers-reduced-motion:no-preference){.c .t{transition:outline-color .15s}}

/* ---------- Header panel + hamburger ----------
   Desktop: .header-panel is display:contents so the menu, search and user
   blocks behave exactly as before inside the header flex row. Mobile
   (<=800px): the panel becomes a dropdown below the sticky header, opened
   by #nav-toggle (html.nav-open). */
.header-panel{display:contents}
.header-in>.theme-toggle{margin-inline-start:auto}
.nav-toggle{display:none;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:20px;border:1px solid var(--border-strong);background:var(--panel);color:var(--text);cursor:pointer;padding:0}
.nav-toggle:hover,.nav-toggle:focus-visible{border-color:var(--accent);color:var(--accent)}
.nav-toggle .icon-close{display:none}
html.nav-open .nav-toggle .icon-burger{display:none}
html.nav-open .nav-toggle .icon-close{display:block}
@media (prefers-reduced-motion:no-preference){html.nav-open .header-panel{animation:cm-nav-in .18s ease}}
@keyframes cm-nav-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

html:root{--mh-accent:#f7941d;--mh-accent-contrast:#fff;--mh-bg:#0d1f1d;--mh-surface:#112320;--mh-text:#e8f0ef;--mh-muted:#7ea8a2;--mh-border:#2a4a46;--mh-hover:#1a3330;--mh-shadow:none}
[class*="region-row-"] .mh-card{width:148px}
[class*="region-row-"] .mh-card--video{width:232px}
[class*="region-row-"] .mh-card--video .mh-card__cover{aspect-ratio:16/9}
[class*="region-row-"] .mh-card__title{margin-top:6px;font-size:13px}
.region-row-ranked .mh-card--video{width:100%}
.region-row-ranked .mh-card--video .mh-card__cover{aspect-ratio:2/3}
.c--wide{width:232px}
.c--wide .t{aspect-ratio:16/9}
.c--wide .c-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.c-excerpt{font-size:12px;color:var(--muted);line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.c-excerpt p{margin:0}
.c--poster{width:130px}
.c--poster .t{aspect-ratio:2/3}
.c--poem{width:232px;position:relative}
.poem-card{position:relative;height:100%;padding:16px;border-radius:12px;background:linear-gradient(135deg,var(--poem-grad-a),var(--poem-grad-b));border:1px solid var(--border-strong);display:flex;flex-direction:column;gap:8px}
.poem-lines{font-size:14px;line-height:2.1;color:var(--text);text-align:center;min-height:92px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.poem-lines p{margin:0}
.poem-card .c-title,.poem-card .c-sub{text-align:center}
.poem-card .c-sub a{position:relative;z-index:1}
.c--wide .c-title a::after,.c--poster .c-title a::after,.poem-card .c-title a::after{content:"";position:absolute;inset:0}
.c--wide,.c--poster{position:relative}
.c--poem:hover .poem-card{border-color:var(--accent)}
.inner{max-width:980px;margin:0 auto}
.inner .block-page-title-block h1,.inner h1.page-title{font-size:28px;font-weight:800;margin:8px 0 18px}
.inner:has(.entry--poem) .block-page-title-block,.inner:has(.entry--poster) .block-page-title-block{text-align:center}
.entry{padding:4px 0 32px}
.entry-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:16px;color:var(--muted);font-size:14px}
.entry-cat a,.entry-tags a,.fact a{display:inline-block;padding:6px 14px;border-radius:18px;background:var(--chip);color:var(--chip-text);font-size:13px;margin:0 0 6px 6px}
.entry-cat a:hover,.entry-tags a:hover,.fact a:hover{background:var(--accent);color:var(--accent-ink)}
.entry-cover{margin:0 0 20px;border-radius:12px;overflow:hidden}
.entry-cover img{display:block;width:100%;height:auto}
.prose{line-height:2.1;font-size:16px}
.prose p{margin:0 0 1.2em}
.prose h2,.prose h3{margin:1.6em 0 .6em;font-weight:800}
.prose a{color:var(--accent);text-decoration:underline}
.prose img{max-width:100%;height:auto;border-radius:8px}
.prose blockquote{margin:1.4em 0;padding:4px 18px;border-inline-start:3px solid var(--accent);color:var(--chip-text)}
.entry-tags{margin-top:24px}
.entry--media .field{margin:14px 0}
.entry--media .field--name-field-image img{display:block;width:100%;border-radius:12px}
.entry-facts{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}
.entry--poem{text-align:center}
.entry--poem .entry-head{justify-content:center}
.entry-poet a{font-weight:800;font-size:18px;color:var(--accent)}
.poem-text{font-size:19px;line-height:2.6;max-width:640px;margin:0 auto}
.poem-text p{margin:0 0 1.4em;white-space:pre-line}
.poem-orn{color:var(--accent);opacity:.8;margin:18px 0}
.poster-view{margin:0 auto 18px;max-width:640px;text-align:center}
.poster-view img{max-width:100%;height:auto;border-radius:10px}
.poster-actions{text-align:center;margin-bottom:18px}
.poster-actions a{display:inline-block;background:var(--accent);color:var(--accent-ink);font-weight:800;padding:11px 26px;border-radius:8px}
.entry--page .prose{max-width:760px;margin:0 auto}
.entry-title{font-size:28px;font-weight:800;margin:0 0 16px}
/* Compat: some setups render views without the standard .view/.view-content
   wrappers (rows land directly in .js-view-dom-id) — style that container too. */
.view-blog .view-content,.view-poems .view-content,[class*="js-view-dom-id"]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.view-posters .view-content{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.view-blog .c,.view-poems .c,.view-posters .c{width:auto}
.views-exposed-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:0 0 18px}
.views-exposed-form .form-item{margin:0}
.views-exposed-form label{display:block;font-size:12px;color:var(--muted);margin-bottom:2px}
.views-exposed-form input[type=text],.views-exposed-form select{height:40px;border-radius:20px;border:1px solid var(--border-strong);background:var(--panel);color:var(--text);padding:0 14px;font-family:inherit;font-size:14px;min-width:160px}
.views-exposed-form input[type=submit]{height:40px;border-radius:20px;border:0;background:var(--accent);color:var(--accent-ink);font-family:inherit;font-weight:800;padding:0 20px;cursor:pointer}
.views-exposed-form input[type=submit][id*="reset"]{background:var(--chip);color:var(--text)}
.pager__items{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:24px 0 0;padding:0;justify-content:center}
.pager__item a,.pager__item.is-active{display:block;min-width:40px;padding:8px 12px;border-radius:20px;background:var(--chip);text-align:center;font-size:14px}
.pager__item.is-active,.pager__item a:hover{background:var(--accent);color:var(--accent-ink)}
.block-views-blockrelated-content-block-blog,.block-views-blockrelated-content-block-poems,.block-views-blockmediahub-blocks-block-related-tags,.block-views-blockmediahub-blocks-block-same-artist{margin-top:28px}
.block-views-blockrelated-content-block-blog .view-content,.block-views-blockrelated-content-block-blog [class*="js-view-dom-id"],.block-views-blockrelated-content-block-poems .view-content,.block-views-blockrelated-content-block-poems [class*="js-view-dom-id"]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.block-views-blockrelated-content-block-blog .block-title,.block-views-blockrelated-content-block-poems .block-title{padding:0;font-size:17px}
.block-views-blockrelated-content-block-blog .c,.block-views-blockrelated-content-block-poems .c{width:auto}
.tabs ul,ul.tabs,.local-tasks ul,.tabs-bar ul{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 12px;flex-wrap:wrap}
.tabs a,ul.tabs a{display:block;padding:8px 14px;border-radius:18px;background:var(--chip);font-size:13px}
ul.tabs li.is-active a,ul.tabs a.is-active,.tabs a.is-active{background:var(--accent);color:var(--accent-ink)}
.tabs-bar{padding-top:4px}
ul.tabs.secondary,.tabs ul.tabs{margin-top:-8px}
.messages{padding:12px 16px;border-radius:8px;background:var(--panel);border:1px solid var(--border-strong);margin:0 0 12px}
.mh-page{padding-inline:0}

/* ==========================================================================
   Mobile navigation and layout (<=800px)
   ========================================================================== */
@media (max-width:800px){
  /* --- Sticky header + hamburger --- */
  .site-header{position:sticky;top:0;z-index:55}
  .header-in{flex-wrap:nowrap;gap:10px;padding:8px 12px}
  .brand{font-size:17px}
  .brand img{width:26px;height:26px}
  .nav-toggle{display:flex}
  .header-panel{display:none}
  html.nav-open .header-panel{display:block;position:absolute;top:100%;inset-inline:0;max-height:calc(100vh - 60px);overflow-y:auto;background:var(--bg2);border-bottom:1px solid var(--line);box-shadow:0 14px 28px rgba(0,0,0,.4);padding:4px 14px 16px}
  .header-menu ul{flex-direction:column;gap:0}
  .header-menu li{border-bottom:1px solid var(--line)}
  .header-menu li:first-child{border-top:1px solid var(--line)}
  .header-menu a{padding:14px 4px;font-size:15px}
  .header-menu a.is-active{color:var(--accent);font-weight:800}
  .header-search{flex:1 1 auto;margin-top:12px}
  .header-search input[type=search],.header-search input[type=text]{height:44px}
  .header-user{margin-top:14px}
  .header-user ul{flex-direction:column;gap:8px}
  .header-user a{display:block;text-align:center;padding:12px 18px}

  /* --- Page rhythm --- */
  .story-bar{padding:10px 12px 0}
  .hero-grid{grid-template-columns:1fr;gap:10px;padding:12px 12px 0}
  .chips-bar ul{padding:10px 12px 0}
  .highlighted{padding:8px 12px 0}
  .block-views .block-title{padding:0 12px;margin:16px 0 6px;font-size:16px}
  .block-views .more-link{left:12px}
  [class*="region-row-"] .view-content,[class*="region-row-"] [class*="js-view-dom-id"]{padding:2px 12px 8px}

  /* --- Hero --- */
  .hero-card{min-height:220px}
  .hero-over{padding:16px;background:linear-gradient(0deg,rgba(7,19,17,.94) 0 46%,rgba(7,19,17,0) 100%)}
  .hero-title{font-size:21px;max-width:none}
  .hero-text{-webkit-line-clamp:2;font-size:13px}
  .btn{padding:10px 20px}
  .region-hero-side .t{width:110px}

  /* --- Horizontal card rows --- */
  .c{width:128px}
  .c--wide{width:200px}
  .c--poster{width:112px}
  .c--poem{width:216px}
  .c-title{font-size:12px}
  .region-row-ranked .views-row{width:140px}
  .region-row-ranked .views-row::before{font-size:26px}
  .region-row-ranked .mh-card,.region-row-ranked .c{width:100%}
  .region-row-artists .c{width:80px}
  [class*="region-row-"] .mh-card{width:128px}
  [class*="region-row-"] .mh-card--video{width:200px}
  .region-row-ranked .mh-card{width:100%}
  .mh-card__title{font-size:12px}
  .poem-card{padding:12px}
  .poem-lines{font-size:13px;min-height:80px}
  .poem-text{font-size:17px}

  /* --- Content pages --- */
  .inner{padding:14px 12px}
  .inner h1{font-size:22px}
  .inner .block-page-title-block h1,.inner h1.page-title{font-size:22px;margin:6px 0 14px}
  .entry-title{font-size:22px}
  .prose{font-size:15px}
  .poem-orn{margin:12px 0}
  .poster-view{max-width:none}

  /* --- Listing grids: two columns on phones --- */
  .view-blog .view-content,.view-poems .view-content,[class*="js-view-dom-id"]{grid-template-columns:repeat(2,1fr);gap:10px}
  .view-posters .view-content{grid-template-columns:repeat(3,1fr);gap:8px}
  .block-views-blockrelated-content-block-blog .view-content,.block-views-blockrelated-content-block-blog [class*="js-view-dom-id"],.block-views-blockrelated-content-block-poems .view-content,.block-views-blockrelated-content-block-poems [class*="js-view-dom-id"]{grid-template-columns:repeat(2,1fr)}

  /* --- Forms, tabs, pager --- */
  .views-exposed-form .form-item{flex:1 1 100%}
  .views-exposed-form input[type=text],.views-exposed-form select{width:100%;min-width:0}
  .views-exposed-form input[type=submit]{flex:1 1 100%}
  .tabs ul,ul.tabs,.local-tasks ul,.tabs-bar ul{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .tabs ul::-webkit-scrollbar,ul.tabs::-webkit-scrollbar{display:none}

  /* --- Footer --- */
  .site-footer{margin-top:20px}
  .site-footer .wrap{flex-direction:column;padding:16px 12px;gap:10px}
  .site-footer ul{flex-wrap:wrap}
}

/* ==========================  Small phones (<=480px)  ========================== */
@media (max-width:480px){
  body{font-size:14px}
  .hero-card{min-height:190px}
  .hero-title{font-size:18px}
  .region-row-ranked .views-row::before{font-size:22px}
  .region-row-ranked .views-row{width:122px}
  .view-posters .view-content{grid-template-columns:repeat(2,1fr)}
  .inner h1,.inner .block-page-title-block h1,.inner h1.page-title,.entry-title{font-size:20px}
}

/* ---------- Theme toggle button ---------- */
.theme-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:20px;border:1px solid var(--border-strong);background:var(--panel);color:var(--text);cursor:pointer;padding:0}
.theme-toggle:hover,.theme-toggle:focus-visible{border-color:var(--accent);color:var(--accent)}
.theme-toggle .icon-moon{display:none}
html[data-theme="light"] .theme-toggle .icon-moon{display:block}
html[data-theme="light"] .theme-toggle .icon-sun{display:none}
@media (prefers-reduced-motion:no-preference){body,.site-header,.site-footer,.theme-toggle{transition:background-color .25s ease,color .25s ease,border-color .25s ease}}

/* ---------- Story bar (Instagram-style) ----------
   A view placed in the "Story bar" region becomes a row of story circles.
   js/story.js builds the circles from the view rows and opens a full-screen
   player (progress bars, 5s auto-advance, tap zones, hold to pause). */
.story-bar{padding:12px 24px 0}
.story-bar .cm-story-circles{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding:2px 0 8px}
.story-bar .cm-story-circles::-webkit-scrollbar{display:none}
.cm-story-circle{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none;width:80px;background:none;border:0;padding:0;cursor:pointer;font-family:inherit;color:var(--text)}
.cm-story-circle .cm-story-ring{display:block;width:72px;height:72px;border-radius:50%;padding:3px;background:linear-gradient(135deg,#f7941d 0%,#1a7a6e 100%)}
.cm-story-circle.is-seen .cm-story-ring{background:var(--border-strong)}
.cm-story-ring img,.cm-story-ring .cm-story-initial{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;background:var(--panel)}
.cm-story-ring .cm-story-initial{display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;color:var(--accent);background:linear-gradient(135deg,var(--chip),var(--panel))}
.cm-story-circle .cm-story-name{font-size:11px;line-height:1.5;max-width:80px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* With JS active the rows are replaced by the circles above */
.story-bar.cm-story-ready .view-content,.story-bar.cm-story-ready [class*="js-view-dom-id"]{display:none}
/* Without JS: degrade the view rows into simple circles */
.story-bar:not(.cm-story-ready) .view-content,.story-bar:not(.cm-story-ready) [class*="js-view-dom-id"]{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.story-bar:not(.cm-story-ready) .view-content::-webkit-scrollbar,.story-bar:not(.cm-story-ready) [class*="js-view-dom-id"]::-webkit-scrollbar{display:none}
.story-bar:not(.cm-story-ready) .views-row{flex:none;width:72px}
.story-bar:not(.cm-story-ready) .views-row img{display:block;width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid var(--accent)}
.story-bar:not(.cm-story-ready) .views-row .mh-card__cover>*,.story-bar:not(.cm-story-ready) .views-row .t{width:64px;height:64px;border-radius:50%}
.story-bar:not(.cm-story-ready) .views-row .c-title,.story-bar:not(.cm-story-ready) .views-row .mh-card__title{font-size:12px;text-align:center;margin-top:6px}

/* Full-screen story player */
.cm-story{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center}
.cm-story[hidden]{display:none}
body.cm-story-lock{overflow:hidden}
.cm-story__frame{position:relative;width:100%;height:100%;max-width:520px;background:#000;overflow:hidden}
.cm-story__bars{position:absolute;top:10px;inset-inline:12px;display:flex;gap:4px;z-index:5}
.cm-story__bar{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.3);overflow:hidden}
.cm-story__bar-fill{display:block;height:100%;width:0;background:#fff}
.cm-story__close{position:absolute;top:20px;inset-inline-end:12px;z-index:6;width:40px;height:40px;border-radius:20px;border:0;background:rgba(0,0,0,.45);color:#fff;font-size:22px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.cm-story__stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.cm-story__stage img{width:100%;height:100%;object-fit:contain}
.cm-story__stage video{width:100%;height:100%;object-fit:contain;background:#000}
.cm-story__mute{position:absolute;top:20px;inset-inline-start:12px;z-index:6;width:40px;height:40px;border-radius:20px;border:0;background:rgba(0,0,0,.45);color:#fff;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.cm-story-circle .cm-story-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.cm-story-circle .cm-story-play::after{content:"";width:0;height:0;border-style:solid;border-width:7px 0 7px 12px;border-color:transparent transparent transparent #fff;filter:drop-shadow(0 0 3px rgba(0,0,0,.6));margin-inline-start:3px}
.cm-story-circle{position:relative}
.cm-story__stage .cm-story-initial{font-size:64px;font-weight:800;color:var(--accent);background:linear-gradient(135deg,#12302C,#0F2420);width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.cm-story__meta{position:absolute;bottom:0;inset-inline:0;z-index:5;padding:44px 18px 18px;background:linear-gradient(0deg,rgba(0,0,0,.85) 0 30%,rgba(0,0,0,0) 100%);display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.cm-story__meta h3{color:#fff;font-size:16px;font-weight:800;margin:0}
.cm-story__meta a{color:#fff;background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:14px;padding:10px 22px;border-radius:8px}
/* Tap zones: in RTL the right zone is "previous", the left zone "next" */
.cm-story__zone{position:absolute;top:0;bottom:0;width:38%;z-index:4;background:none;border:0;cursor:pointer}
.cm-story__zone--prev{inset-inline-start:0}
.cm-story__zone--next{inset-inline-end:0}
@media (prefers-reduced-motion:no-preference){.cm-story{animation:cm-story-in .18s ease}}
@keyframes cm-story-in{from{opacity:0}to{opacity:1}}

/* ---------- Day (light) theme ----------
   Applied when html[data-theme="light"] is set (by the toggle or the
   inline head script that honours prefers-color-scheme on first visit).
   Hero text, duration badge and cover placeholders stay light-on-dark
   because they always sit on top of the dark image overlay. */
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f0f7f6;--bg2:#e2f0ee;--panel:#fff;--chip:#d4eae7;--line:#c5ddd9;
  --text:#0d2825;--muted:#4a706a;
  --accent:#f7941d;--accent-ink:#fff;
  --link-hover:#e0820f;--chip-text:#1a4a44;--border-strong:#a8ccc8;--btn-hover-bg:#e0820f;
  --poem-grad-a:#fff;--poem-grad-b:#f0f7f6;
  --teal:#1a7a6e;--teal-dark:#0f5a50;--teal-light:#2a9a8a;--accent2:#ffc158;
  --mh-accent:#f7941d;--mh-accent-contrast:#fff;--mh-bg:#f0f7f6;--mh-surface:#fff;
  --mh-text:#0d2825;--mh-muted:#4a706a;--mh-border:#c5ddd9;--mh-hover:#e2f0ee
}
/* The header keeps a translucent surface that follows the theme;
   a hardcoded dark header would make the menu invisible on light mode */
html[data-theme="light"] .site-header{background:rgba(248,252,251,.95)}

/* ---- Filimo-style additions ---- */
.c--wide{width:260px}
.c--wide .t{aspect-ratio:16/9}
.c--poster{width:120px}
.c--poster .t{aspect-ratio:2/3}
.c--poem{width:200px}
.poem-card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:14px}
.poem-card:hover{border-color:var(--accent)}
.poem-lines{font-size:14px;line-height:2.1;text-align:center;min-height:92px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.poem-card .c-title,.poem-card .c-sub{text-align:center}
.region-row-artists .c{width:100px;text-align:center}
.region-row-artists .t{border-radius:50%;aspect-ratio:1/1}
.region-row-artists .pb,.region-row-artists .d{display:none}
[class*="region-row-"] .mh-card{width:160px}
[class*="region-row-"] .mh-card--video{width:260px}
[class*="region-row-"] .mh-card--video .mh-card__cover{aspect-ratio:16/9}
[class*="region-row-"] .mh-card__title{margin-top:5px;font-size:13px}
[class*="region-row-"] .mh-card__cover{border-radius:7px}
[class*="region-row-"] .mh-card:hover .mh-card__cover{outline:2px solid var(--teal-light);outline-offset:1px}
.region-row-ranked .mh-card,.region-row-ranked .c{width:100%}
.region-row-ranked .mh-card__cover,.region-row-ranked .t{aspect-ratio:2/3;border-radius:7px}
.c--wide .c-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.c-excerpt{font-size:12px;color:var(--muted);line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.c-excerpt p{margin:0}
.inner{max-width:980px;margin:0 auto;padding:24px}
.inner h1{font-size:26px;font-weight:800;margin-bottom:16px}
.inner a{color:var(--accent)}
.inner .field--name-body{line-height:2}
.entry{padding:4px 0 32px}
.entry-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:16px;color:var(--muted);font-size:14px}
.entry-cat a,.entry-tags a,.fact a{display:inline-block;padding:6px 14px;border-radius:6px;background:var(--chip);color:var(--chip-text);font-size:13px;margin:0 0 6px 6px}
.entry-cat a:hover,.entry-tags a:hover,.fact a:hover{background:var(--accent);color:var(--accent-ink)}
.entry-cover{margin:0 0 20px;border-radius:8px;overflow:hidden}
.entry-cover img{display:block;width:100%;height:auto}
.prose{line-height:2.1;font-size:16px}
.prose p{margin:0 0 1.2em}
.prose h2,.prose h3{margin:1.6em 0 .6em;font-weight:800}
.prose a{color:var(--accent);text-decoration:underline}
.prose img{max-width:100%;height:auto;border-radius:7px}
.prose blockquote{margin:1.4em 0;padding:4px 18px;border-inline-start:3px solid var(--accent);color:var(--muted)}
.entry-tags{margin-top:24px}
.entry-facts{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}
.entry--poem{text-align:center}
.entry--poem .entry-head{justify-content:center}
.entry-poet a{font-weight:800;font-size:18px;color:var(--accent)}
.poem-text{font-size:19px;line-height:2.6;max-width:640px;margin:0 auto}
.poem-text p{margin:0 0 1.4em;white-space:pre-line}
.poem-orn{color:var(--accent);opacity:.5;margin:18px 0}
.poster-view{margin:0 auto 18px;max-width:640px;text-align:center}
.poster-view img{max-width:100%;height:auto;border-radius:8px}
.poster-actions{text-align:center;margin-bottom:18px}
.poster-actions a{display:inline-block;background:var(--accent);color:var(--accent-ink);font-weight:700;padding:11px 26px;border-radius:7px}
.entry--page .prose{max-width:760px;margin:0 auto}
.entry-title{font-size:26px;font-weight:800;margin:0 0 16px}
.view-blog .view-content,.view-poems .view-content{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.view-posters .view-content{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.view-blog .c,.view-poems .c,.view-posters .c{width:auto}
.views-exposed-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:0 0 18px}
.views-exposed-form .form-item{margin:0}
.views-exposed-form label{display:block;font-size:12px;color:var(--muted);margin-bottom:2px}
.views-exposed-form input[type=text],.views-exposed-form select{height:40px;border-radius:7px;border:1px solid var(--border-strong);background:var(--panel);color:var(--text);padding:0 14px;font-family:inherit;font-size:14px}
.views-exposed-form input[type=text]:focus,.views-exposed-form select:focus{outline:none;border-color:var(--accent)}
.views-exposed-form input[type=submit]{height:40px;border-radius:7px;border:0;background:var(--accent);color:var(--accent-ink);font-family:inherit;font-weight:700;padding:0 20px;cursor:pointer}
.views-exposed-form input[type=submit][id*="reset"]{background:var(--chip);color:var(--text)}
.pager__items{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:24px 0 0;padding:0;justify-content:center}
.pager__item a,.pager__item.is-active{display:block;min-width:40px;padding:8px 12px;border-radius:7px;background:var(--chip);text-align:center;font-size:14px}
.pager__item.is-active,.pager__item a:hover{background:var(--accent);color:var(--accent-ink)}
.block-views-blockrelated-content-block-blog,.block-views-blockrelated-content-block-poems,.block-views-blockmediahub-blocks-block-related-tags,.block-views-blockmediahub-blocks-block-same-artist{margin-top:28px}
.block-views-blockrelated-content-block-blog .view-content,.block-views-blockrelated-content-block-poems .view-content{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.block-views-blockrelated-content-block-blog .block-title,.block-views-blockrelated-content-block-poems .block-title{padding:0;font-size:17px}
.block-views-blockrelated-content-block-blog .c,.block-views-blockrelated-content-block-poems .c{width:auto}
.tabs ul,.local-tasks ul{display:flex;gap:6px;list-style:none;padding:0;margin:0 0 12px;flex-wrap:wrap}
.tabs a{display:block;padding:8px 14px;border-radius:7px;background:var(--chip);font-size:13px;font-weight:500}
.messages{padding:12px 16px;border-radius:7px;background:var(--panel);border:1px solid var(--border-strong);margin:0 0 12px}
.mh-page{padding-inline:0}
@media (prefers-reduced-motion:no-preference){.btn{transition:transform .15s,background-color .15s}}

/* ---------- Filimo-style media cards (v1.9.3) ----------
   16:9 cover with the title overlaid on the image; the inline play/add/
   download buttons are hidden — the whole card links to the node page. */
.mh-card{position:relative}
.mh-card__cover{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:8px}
.mh-card__cover .mh-card__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.mh-card__play,.mh-card__add,.mh-card__dl{display:none}
.mh-card__title{position:absolute;right:0;left:0;bottom:0;margin:0;padding:24px 10px 8px;font-size:13px;line-height:1.6;font-weight:700;background:linear-gradient(0deg,rgba(4,14,12,.92) 0 40%,rgba(4,14,12,0) 100%);color:#fff}
.mh-card__title a{color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mh-card__meta{margin:4px 0 0;font-size:12px;color:var(--muted)}
.mh-card__meta svg{display:none}
/* the story-bar fallback keeps its simple circles */
.story-bar:not(.cm-story-ready) .mh-card__cover{aspect-ratio:auto}
.story-bar:not(.cm-story-ready) .mh-card__img{position:static;width:64px;height:64px;border-radius:50%}
.story-bar:not(.cm-story-ready) .mh-card__title{position:static;background:none;padding:0;margin-top:6px;color:var(--text)}
.story-bar .mh-card__meta{display:none}

/* ranked rows: Persian rank number overlaid on the card image */
.region-row-ranked .views-row{width:160px}
.region-row-ranked .views-row::before{font-size:32px;opacity:.96}
.region-row-ranked .mh-card,.region-row-ranked .c{width:100%}
.region-row-ranked .mh-card__cover,.region-row-ranked .t{aspect-ratio:16/9}

/* artists: Instagram-style photo circles (initials/icon until term images exist) */
.region-row-artists .views-row{flex:none;width:88px}
.region-row-artists .views-row>div{margin:0}
.region-row-artists h2{margin:0;font-size:13px;font-weight:700;text-align:center}
.region-row-artists h2 a{display:block;color:var(--text);text-decoration:none}
.region-row-artists h2 a::before{content:"";display:block;width:72px;height:72px;margin:0 auto 8px;border-radius:50%;border:2px solid var(--teal-light);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23eaf4f2'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11h-2z'/%3E%3C/svg%3E") center/30px no-repeat,linear-gradient(135deg,var(--teal),var(--teal-dark))}
.region-row-artists h2 a:hover::before{border-color:var(--accent)}
.region-row-artists h2 a img{width:72px;height:72px;border-radius:50%;object-fit:cover;display:block;margin:0 auto 8px}
.region-row-artists h2 a:has(img)::before{display:none}
.region-row-artists h2 a div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* phone adjustments for the redesigned pieces */
@media (max-width:800px){
  .region-row-ranked .views-row::before{font-size:20px}
  .region-row-ranked .mh-card,.region-row-ranked .c{width:100%}
  .region-row-artists .views-row{width:76px}
  .region-row-artists h2 a::before,.region-row-artists h2 a img{width:60px;height:60px}
}


/* ---------- Homepage hero alignment and today's calendar ---------- */
.hero-grid{align-items:stretch}
.region-hero{min-height:350px}
.region-hero>.block{height:100%}
.region-hero .view-content,.region-hero [class*="js-view-dom-id"]{height:100%}
.region-hero .views-row{height:100%}
.region-hero .hero-card{height:100%;min-height:350px}
.region-hero-side{display:flex;flex-direction:column;min-height:350px}
.region-hero-side>.block{display:flex;flex:1;flex-direction:column;min-height:0}
.region-hero-side .view-content,.region-hero-side [class*="js-view-dom-id"]{flex:1;display:grid;grid-auto-rows:minmax(0,1fr);gap:6px}
.today-panel{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(0,2fr);gap:14px;margin:22px 24px 8px;padding:16px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(135deg,var(--panel),var(--bg2))}
.today-date{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:8px 16px;border-inline-end:1px solid var(--line)}
.today-kicker{font-size:12px;color:var(--muted);font-weight:700}
.today-date time{font-size:20px;font-weight:900;color:var(--text)}
.today-gregorian{font-size:12px;color:var(--muted);direction:ltr;text-align:right}
.today-events{min-width:0}
.today-events h2{font-size:16px;font-weight:800;margin:0 0 8px}
.today-events .view-content{display:flex;flex-wrap:wrap;gap:8px}
.today-events .views-row{flex:1 1 180px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--bg)}
@media(max-width:800px){
  .region-hero{min-height:0}
  .region-hero .hero-card{height:auto;min-height:220px}
  .region-hero-side{min-height:0}
  .region-hero-side>.block{display:block;flex:initial}
  .region-hero-side .view-content,.region-hero-side [class*="js-view-dom-id"]{display:flex;flex-direction:column;flex:initial}
  .today-panel{grid-template-columns:1fr;margin:16px 12px 6px;padding:12px;gap:10px}
  .today-date{border-inline-end:0;border-bottom:1px solid var(--line);padding:4px 4px 10px}
  .today-date time{font-size:18px}
}


/* ---------- Homepage layout normalization (1.9.5) ---------- */
main.wrap{width:100%;max-width:1400px;margin-inline:auto}
.hero-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);align-items:stretch;gap:12px;padding:12px 24px 0}
.hero-grid>.region{min-width:0;min-height:340px}
.region-hero{display:flex;min-height:340px;height:100%;align-items:stretch}
.region-hero>.block,.region-hero .view,.region-hero .view-content{width:100%;height:100%;min-height:340px}
.region-hero .view-content{display:block}
.region-hero .views-row{height:100%;min-height:340px}
.region-hero .hero-card{width:100%;height:100%;min-height:340px;border-radius:10px}
.region-hero-side{display:flex;flex-direction:column;min-width:0;min-height:340px;height:100%}
.region-hero-side>.block,.region-hero-side .block-views{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;margin:0}
.region-hero-side .block-views .block-title{flex:none;margin:0 0 8px;padding:0 2px;font-size:15px;line-height:1.6}
.region-hero-side .view,.region-hero-side .view-content{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;height:auto;gap:7px}
.region-hero-side .view-content>.views-row{display:flex;flex:1 1 0;min-height:0}
.region-hero-side .c{display:flex;flex:1 1 auto;align-items:center;min-height:0;width:100%;padding:7px 9px;gap:10px}
.region-hero-side .t{width:88px;aspect-ratio:16/9;flex:none}
.region-hero-side .c-body{min-width:0;flex:1}
.region-hero-side .c-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Consistent rhythm between homepage content rows. */
main.wrap>.hero-grid+ .region{margin-top:18px}
main.wrap>[class*="region-row-"]{margin-top:16px}
main.wrap>[class*="region-row-"] .block-views .block-title{margin-top:0;margin-bottom:8px}
main.wrap>[class*="region-row-"] .view-content,
main.wrap>[class*="region-row-"] [class*="js-view-dom-id"]{padding-top:2px;padding-bottom:10px}
main.wrap>.region-today-events{margin:20px 24px 8px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.region-today-events .block-title{margin:0 0 10px;padding:0;font-size:17px;font-weight:800}
.region-today-events .view-content{display:flex;flex-wrap:wrap;gap:10px}
.region-today-events .views-row{min-width:0;flex:1 1 220px}

.brand{flex:none;min-width:36px;min-height:36px;justify-content:center}
.brand img{display:block;width:auto;max-width:180px;height:auto;max-height:42px;object-fit:contain}

@media(max-width:800px){
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px 12px 0}
  .hero-grid>.region,.region-hero,.region-hero>.block,.region-hero .view,.region-hero .view-content,.region-hero .views-row{min-height:0;height:auto}
  .region-hero .hero-card{height:auto;min-height:220px}
  .region-hero-side{height:auto;min-height:0}
  .region-hero-side>.block,.region-hero-side .block-views{display:block;flex:initial}
  .region-hero-side .view,.region-hero-side .view-content{display:flex;flex:initial;gap:7px}
  .region-hero-side .views-row{flex:initial;min-height:0}
  .region-hero-side .c{min-height:58px}
  main.wrap>.region-today-events{margin:16px 12px 6px;padding:12px}
  main.wrap>[class*="region-row-"]{margin-top:12px}
}


/* ---------- Homepage top composition (1.9.6) ---------- */
/* Stories sit directly above the main slider; today's date sits above Latest. */
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
  align-items:stretch;
  gap:12px;
  padding:12px 24px 0;
}
.hero-main-column,
.hero-side-column{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
}
.hero-main-column .story-bar{
  box-sizing:border-box;
  flex:none;
  min-height:104px;
  padding:8px 0 10px;
  margin:0;
}
.hero-main-column .story-bar .cm-story-circles{
  min-height:82px;
  align-items:flex-start;
}
.hero-main-column .region-hero{
  flex:1 1 auto;
  min-height:340px;
  height:auto;
}
.hero-main-column .region-hero>.block,
.hero-main-column .region-hero .view,
.hero-main-column .region-hero .view-content,
.hero-main-column .region-hero .views-row{
  height:100%;
  min-height:340px;
}
.hero-main-column .region-hero .hero-card{
  height:100%;
  min-height:340px;
}
.hero-side-column .region-today-events{
  box-sizing:border-box;
  flex:none;
  min-height:104px;
  margin:0 0 10px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
}
.hero-side-column .region-today-events>.block{
  width:100%;
  margin:0;
}
.hero-side-column .region-today-events .block-title{
  margin:0 0 6px;
  font-size:14px;
}
.hero-side-column .region-today-events .view-content{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.hero-side-column .region-today-events .views-row{
  min-width:0;
  flex:1 1 120px;
}
.hero-side-column .region-hero-side{
  flex:1 1 auto;
  min-height:340px;
  height:auto;
}
.hero-side-column .region-hero-side>.block,
.hero-side-column .region-hero-side .block-views{
  min-height:340px;
}
.hero-side-column .region-hero-side .view,
.hero-side-column .region-hero-side .view-content{
  min-height:0;
}
@media(max-width:767px){
  .hero-grid{
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    padding:12px 12px 0;
  }
  .hero-main-column .story-bar{
    min-height:0;
    padding:8px 0 6px;
  }
  .hero-main-column .region-hero,
  .hero-main-column .region-hero>.block,
  .hero-main-column .region-hero .view,
  .hero-main-column .region-hero .view-content,
  .hero-main-column .region-hero .views-row,
  .hero-main-column .region-hero .hero-card{
    min-height:220px;
    height:auto;
  }
  .hero-side-column .region-today-events{
    min-height:0;
    margin:4px 0 8px;
    padding:10px;
  }
  .hero-side-column .region-hero-side,
  .hero-side-column .region-hero-side>.block,
  .hero-side-column .region-hero-side .block-views{
    min-height:0;
  }
}

/* ==========================================================================
   1.9.9 — Full-node pages (وبلاگ / مراسم و …) fixes
   ========================================================================== */
/* 1) On node pages the core "Page title" block printed the title once and the
   article template printed .entry-title again — the title appeared twice.
   Every node full template renders .entry, while teasers/listing pages don't,
   so hiding the block only when an .entry exists is safe. */
.inner:has(.entry) .block-page-title-block{display:none}
/* 2) Category & tag chips: each chip is wrapped in its own <div>, so they
   stacked one chip per line. Let the chips flow side by side. */
.entry-cat>div>div,.entry-tags>div>div{display:inline-block}
/* 3) Portrait covers (ceremony posters 854x1280): width:100% stretched the
   poster over the whole column (~1400px tall). Cap the height and center. */
.entry-cover img{width:auto;max-width:100%;height:auto;max-height:86vh;margin:0 auto}
/* 4) Tidy date/author meta row */
.entry-meta{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
/* 5) Keep some breathing room around the article body on wide screens */
.entry-body.prose{margin-bottom:8px}
/* 6) Chips bar: the views grid wrapper let the <ul> grow to its max-content
   (2174px) instead of scrolling — the whole page overflowed horizontally on
   node pages. Zero the track/item minimums so the UL scrolls internally. */
.chips-bar .js-view-dom-id{grid-template-columns:minmax(0,1fr)}
.chips-bar .item-list,.chips-bar ul{min-width:0}
