/*
 * Dorehami Persian editorial layer — checkpoint 141.
 * Persian-only: loaded by the Persian shared header and injected only into
 * standalone documents whose root element is <html lang="fa" dir="rtl">.
 */
:root{
  --editorial-navy:#081c2c;
  --editorial-navy-2:#102f43;
  --editorial-cream:#f6f0e4;
  --editorial-cream-2:#fffaf1;
  --editorial-paper:#fbf7ef;
  --editorial-gold:#c5a15a;
  --editorial-gold-dark:#936d2c;
  --editorial-terracotta:#9a503b;
  --editorial-ink:#17232b;
  --editorial-muted:#66717a;
  --editorial-line:rgba(147,109,44,.28);
  --editorial-shadow:0 18px 50px rgba(8,28,44,.09);
  --editorial-radius:18px;
  --editorial-reading:76ch;
}

html[lang="fa"]{scroll-behavior:smooth;background:var(--editorial-cream)}
html[lang="fa"] body{
  background:
    radial-gradient(circle at 9% 4%,rgba(197,161,90,.09),transparent 26rem),
    var(--editorial-cream);
  color:var(--editorial-ink);
  font-family:Tahoma,"Segoe UI",Arial,sans-serif;
  line-height:1.9;
  text-rendering:optimizeLegibility;
}
html[lang="fa"] :where(h1,h2,h3,h4,strong){font-family:Tahoma,"Segoe UI",Arial,sans-serif}
html[lang="fa"] :where(a,button,input,textarea,select,summary){font:inherit}
html[lang="fa"] :where(a,button,input,textarea,select,summary):focus-visible{
  outline:3px solid #f4c96b;
  outline-offset:3px;
}
html[lang="fa"] img{max-width:100%;height:auto}
html[lang="fa"] .container{width:min(1180px,calc(100% - 40px));margin-inline:auto}

/* Header: quiet utility rail, strong editorial masthead, compact discovery. */
.editorial-utility{background:var(--editorial-cream-2);border-bottom:1px solid var(--editorial-line);color:#4d4438}
.editorial-utility-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:.78rem}
.editorial-utility p{margin:0}
.editorial-utility nav{display:flex;gap:18px;align-items:center}
.editorial-utility a{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.editorial-utility a:hover{border-color:var(--editorial-gold-dark)}
html[lang="fa"] .master-site-header{position:relative;z-index:40;background:var(--editorial-navy);box-shadow:0 12px 28px rgba(8,28,44,.13)}
html[lang="fa"] .master-topbar{background:var(--editorial-navy);border:0}
html[lang="fa"] .master-topbar-inner{min-height:86px;gap:28px}
html[lang="fa"] .master-logo{min-width:220px}
html[lang="fa"] .imperial-logo-image{width:210px;height:auto;filter:none}
html[lang="fa"] .master-search{
  width:min(420px,42vw);margin-inline:auto;background:rgba(255,255,255,.075);
  border:1px solid rgba(197,161,90,.55);border-radius:999px;overflow:hidden;
}
html[lang="fa"] .master-search input{height:46px;background:transparent;color:#fff;border:0;padding-inline:20px;min-width:0}
html[lang="fa"] .master-search input::placeholder{color:rgba(255,255,255,.72)}
html[lang="fa"] .master-search button{width:50px;background:var(--editorial-gold);color:var(--editorial-navy);border:0}
html[lang="fa"] .master-join{
  min-height:44px;padding:8px 20px;border:1px solid var(--editorial-gold);border-radius:999px;
  color:#fff;background:transparent;text-decoration:none;display:inline-flex;align-items:center
}
html[lang="fa"] .master-join:hover{background:var(--editorial-gold);color:var(--editorial-navy)}
html[lang="fa"] .master-navrow{background:#0d2637;border-top:1px solid rgba(197,161,90,.18)}
html[lang="fa"] .master-navrow-inner{min-height:54px}
html[lang="fa"] .main-nav{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
html[lang="fa"] .main-nav>a,
html[lang="fa"] .main-nav>div>button,
html[lang="fa"] .editorial-more>summary{
  color:#f8f0df;background:transparent;border:0;border-radius:9px;padding:10px 12px;
  text-decoration:none;font-size:.88rem;cursor:pointer;white-space:nowrap
}
html[lang="fa"] .main-nav>a:hover,
html[lang="fa"] .main-nav>a[aria-current="page"],
html[lang="fa"] .main-nav>div>button:hover,
html[lang="fa"] .editorial-more>summary:hover{color:#fff;background:rgba(197,161,90,.14)}
.editorial-more{position:relative}
.editorial-more>summary{list-style:none}
.editorial-more>summary::-webkit-details-marker{display:none}
.editorial-more>summary::after{content:"⌄";margin-right:7px;color:var(--editorial-gold)}
.editorial-more[open]>summary{background:rgba(197,161,90,.16)!important}
.editorial-more-panel{
  position:absolute;top:calc(100% + 8px);left:0;z-index:30;width:260px;padding:10px;
  display:grid;gap:4px;background:var(--editorial-cream-2);border:1px solid var(--editorial-line);
  border-radius:14px;box-shadow:var(--editorial-shadow)
}
.editorial-more-panel a{color:var(--editorial-ink);text-decoration:none;padding:9px 12px;border-radius:8px}
.editorial-more-panel a:hover{background:#efe3cf;color:var(--editorial-navy)}

/* Approved homepage lead: factual destinations, no fabricated activity. */
.editorial-home-intro{padding:24px 0 18px;background:var(--editorial-cream)}
.editorial-lead-shell{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.72fr);gap:16px}
.editorial-lead-feature{position:relative;min-height:460px;border-radius:24px;overflow:hidden;box-shadow:var(--editorial-shadow);background:var(--editorial-navy)}
.editorial-lead-feature>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.editorial-lead-feature::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,28,44,.12),rgba(8,28,44,.82) 76%)}
.editorial-lead-copy{position:relative;z-index:2;width:min(580px,76%);min-height:460px;padding:54px;display:flex;flex-direction:column;justify-content:center;color:#fff}
.editorial-kicker{display:inline-flex;align-items:center;gap:10px;color:#f4cf82;font-size:.9rem;font-weight:700;letter-spacing:.02em}
.editorial-kicker::before{content:"";width:38px;height:1px;background:var(--editorial-gold)}
.editorial-lead-copy h1{font-size:clamp(2.35rem,5vw,4.8rem);line-height:1.2;margin:12px 0 14px;color:#fff;letter-spacing:-.04em}
.editorial-lead-copy p{font-size:1.04rem;max-width:48ch;margin:0 0 24px;color:#f7f0e3}
.editorial-gold-button{display:inline-flex;width:max-content;align-items:center;gap:9px;padding:11px 20px;border-radius:999px;background:var(--editorial-gold);color:var(--editorial-navy);text-decoration:none;font-weight:800}
.editorial-gold-button::after{content:"←"}
.editorial-gold-button:hover{background:#e0bd73;transform:translateY(-1px)}
.editorial-lead-side{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:16px}
.editorial-lead-card{position:relative;min-height:220px;overflow:hidden;border-radius:20px;background:var(--editorial-navy);box-shadow:0 12px 35px rgba(8,28,44,.08);color:#fff;text-decoration:none}
.editorial-lead-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.editorial-lead-card::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,28,44,.92),rgba(8,28,44,.02) 72%)}
.editorial-lead-card div{position:absolute;z-index:2;inset:auto 0 0;padding:22px}
.editorial-lead-card span{font-size:.74rem;color:#f1c978}
.editorial-lead-card h2{font-size:1.13rem;line-height:1.55;color:#fff;margin:3px 0 0}
.editorial-lead-card:hover img{transform:scale(1.035)}
.editorial-fresh{padding:18px 0 38px}
.editorial-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:14px}
.editorial-section-head h2{margin:0;color:var(--editorial-navy);font-size:clamp(1.55rem,3vw,2.25rem)}
.editorial-section-head p{margin:0;color:var(--editorial-muted)}
.editorial-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.editorial-article-card{display:flex;flex-direction:column;min-height:100%;background:var(--editorial-paper);border:1px solid var(--editorial-line);border-radius:16px;overflow:hidden;color:var(--editorial-ink);text-decoration:none;box-shadow:0 10px 30px rgba(8,28,44,.045)}
.editorial-article-card img{width:100%;height:160px;object-fit:cover;background:#ddd}
.editorial-article-card div{padding:17px;display:flex;flex-direction:column;flex:1}
.editorial-article-card span{font-size:.74rem;color:var(--editorial-gold-dark);font-weight:700}
.editorial-article-card h2{font-size:1.05rem;line-height:1.65;margin:5px 0 8px;color:var(--editorial-navy)}
.editorial-article-card p{font-size:.86rem;line-height:1.85;margin:0;color:var(--editorial-muted)}
.editorial-article-card:hover{transform:translateY(-3px);box-shadow:var(--editorial-shadow)}
.editorial-paths{padding:18px 0 42px}
.editorial-path-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--editorial-line);border-radius:18px;background:var(--editorial-cream-2);overflow:hidden}
.editorial-path-grid a{padding:20px 12px;text-align:center;color:var(--editorial-navy);text-decoration:none;font-weight:800;border-left:1px solid var(--editorial-line)}
.editorial-path-grid a:last-child{border-left:0}
.editorial-path-grid a::before{content:"✦";display:block;color:var(--editorial-gold-dark);font-size:1.3rem;margin-bottom:5px}
.editorial-path-grid a:hover{background:#eee2cd}
.editorial-timeline{margin:0 auto 38px;padding:24px 28px;border:1px solid var(--editorial-line);border-radius:20px;background:rgba(255,250,241,.82)}
.editorial-timeline h2{margin:0 0 16px;color:var(--editorial-navy)}
.editorial-timeline ol{display:grid;grid-template-columns:repeat(6,1fr);gap:0;list-style:none;padding:0;margin:0;counter-reset:eras}
.editorial-timeline li{position:relative;text-align:center;padding:31px 7px 0;color:#4c5962;font-size:.8rem;border-top:2px solid #c9aa69}
.editorial-timeline li::before{content:"";position:absolute;top:-7px;right:calc(50% - 6px);width:12px;height:12px;border-radius:50%;background:var(--editorial-gold);box-shadow:0 0 0 5px var(--editorial-cream-2)}

/* Existing homepage sections are retained and visually unified. */
html[lang="fa"] .family-homepage .family-welcome,
html[lang="fa"] .family-homepage .imperial-benefits,
html[lang="fa"] .family-homepage .imperial-category-band,
html[lang="fa"] .family-homepage .imperial-feature-section,
html[lang="fa"] .family-homepage .imperial-competition-home,
html[lang="fa"] .family-homepage .imperial-trust-strip{background:transparent}
html[lang="fa"] .family-homepage .family-hero{border-radius:24px;box-shadow:var(--editorial-shadow);border:1px solid var(--editorial-line)}
html[lang="fa"] .family-homepage .family-hero-copy h2{font-size:clamp(2rem,5vw,4rem);line-height:1.3;margin:.25em 0;color:#fff}
html[lang="fa"] .family-homepage :where(.family-topic,.imperial-feature-card,.imperial-category-card,.family-values article){border-radius:var(--editorial-radius);border-color:var(--editorial-line);box-shadow:0 12px 32px rgba(8,28,44,.055)}
html[lang="fa"] .family-homepage :where(.family-topics>h2,.family-gallery>h2,.family-connect h2){color:var(--editorial-navy)}
html[lang="fa"] .family-connect{background:#efe2ce;border-block:1px solid var(--editorial-line)}

/* Persian internal pages: editorial reading surface without touching content. */
html[lang="fa"] body:not(.family-homepage) .site-header{border-bottom:1px solid var(--editorial-line)}
html[lang="fa"] .culture-top,
html[lang="fa"] .culture-nav{width:min(1180px,calc(100% - 40px));margin-inline:auto}
html[lang="fa"] .culture-top{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px}
html[lang="fa"] .culture-top img{width:205px;height:auto}
html[lang="fa"] .culture-languages{display:flex;gap:6px;align-items:center}
html[lang="fa"] .culture-languages a{padding:7px 10px;border-radius:999px;color:#fff;text-decoration:none;border:1px solid rgba(197,161,90,.28)}
html[lang="fa"] .culture-languages a[aria-current="page"]{background:var(--editorial-gold);color:var(--editorial-navy)}
html[lang="fa"] .culture-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding-block:8px 14px}
html[lang="fa"] .culture-nav a{color:#f6efdf;text-decoration:none;padding:8px 11px;border-radius:8px}
html[lang="fa"] .culture-nav a:hover{background:rgba(197,161,90,.14)}
html[lang="fa"] .culture-breadcrumb{padding-block:18px 8px}
html[lang="fa"] .culture-breadcrumb ol{display:flex;gap:7px;align-items:center;flex-wrap:wrap;list-style:none;margin:0;padding:0;color:var(--editorial-muted);font-size:.84rem}
html[lang="fa"] .culture-breadcrumb li:not(:last-child)::after{content:"/";margin-right:7px;color:var(--editorial-gold-dark)}
html[lang="fa"] .culture-breadcrumb a{color:var(--editorial-navy-2);text-decoration:none}
html[lang="fa"] .page-hero{margin:12px auto 26px;width:min(1180px,calc(100% - 40px));border-radius:22px;overflow:hidden;background:var(--editorial-navy);color:#fff;box-shadow:var(--editorial-shadow)}
html[lang="fa"] .page-hero .container{width:100%;padding:44px clamp(24px,5vw,68px)}
html[lang="fa"] .page-hero .eyebrow{color:#e7c477;font-size:.82rem;font-weight:700}
html[lang="fa"] .page-hero h1{font-size:clamp(2rem,5vw,4.2rem);line-height:1.25;color:#fff;margin:8px 0 12px;letter-spacing:-.035em}
html[lang="fa"] .page-hero p{max-width:72ch;margin:0;color:#f4ecde;font-size:1.02rem}
html[lang="fa"] .section>.container.culture-reading,
html[lang="fa"] .culture-reading{
  max-width:980px;padding:clamp(24px,4vw,48px);margin:0 auto 40px;background:var(--editorial-paper);
  border:1px solid var(--editorial-line);border-radius:22px;box-shadow:var(--editorial-shadow)
}
html[lang="fa"] .culture-reading>p,
html[lang="fa"] .culture-reading>section:not(.culture-gallery):not(.section),
html[lang="fa"] .culture-reading>nav:not(.era-toc){max-width:var(--editorial-reading);margin-inline:auto}
html[lang="fa"] .culture-reading h2{color:var(--editorial-navy);font-size:clamp(1.35rem,3vw,2rem);line-height:1.55;margin-top:1.8em}
html[lang="fa"] .culture-reading h3{color:var(--editorial-navy-2)}
html[lang="fa"] .culture-reading p{color:#313d44}
html[lang="fa"] .culture-reading a{color:#72501d;text-decoration-thickness:1px;text-underline-offset:3px}
html[lang="fa"] :where(.culture-toc,.era-toc){padding:18px 20px;border:1px solid var(--editorial-line);border-radius:16px;background:#f0e6d5;margin:18px 0 28px}
html[lang="fa"] :where(.culture-toc,.era-toc) ul{margin:10px 0 0;padding-right:20px;columns:2;column-gap:32px}
html[lang="fa"] :where(.culture-toc,.era-toc) li{break-inside:avoid;margin-bottom:6px}
html[lang="fa"] .culture-gallery{margin:24px 0;border-radius:18px;overflow:hidden;background:var(--editorial-navy);color:#fff;box-shadow:0 14px 34px rgba(8,28,44,.12)}
html[lang="fa"] .culture-gallery figure{margin:0}
html[lang="fa"] .culture-gallery img{width:100%;max-height:560px;object-fit:cover;display:block}
html[lang="fa"] .culture-gallery figcaption{padding:12px 18px;color:#f7efdf;font-size:.86rem}
html[lang="fa"] .culture-gallery :where(.culture-small,details){margin-inline:18px;color:#efe4d0}
html[lang="fa"] .grid{gap:14px}
html[lang="fa"] .card{border:1px solid var(--editorial-line);border-radius:16px;background:var(--editorial-cream-2);box-shadow:0 10px 28px rgba(8,28,44,.045);color:var(--editorial-ink)}
html[lang="fa"] .card:hover{transform:translateY(-2px);box-shadow:var(--editorial-shadow)}
html[lang="fa"] .card h3{color:var(--editorial-navy)}
html[lang="fa"] .culture-faq{border:1px solid var(--editorial-line);border-radius:14px;background:#fffaf1;padding:12px 16px;margin-bottom:10px}
html[lang="fa"] .culture-faq summary{color:var(--editorial-navy);font-weight:800;cursor:pointer}

/* Shared Persian footer and forms. */
html[lang="fa"] .site-contact-strip{background:#efe3cf;border-block:1px solid var(--editorial-line)}
html[lang="fa"] :where(.site-contact-form,.imperial-newsletter-form) input,
html[lang="fa"] :where(.site-contact-form,.imperial-newsletter-form) textarea{
  border:1px solid rgba(8,28,44,.24);border-radius:10px;background:#fffdfa;min-height:46px
}
html[lang="fa"] :where(.site-contact-form,.imperial-newsletter-form) button{border-radius:999px;background:var(--editorial-gold);color:var(--editorial-navy);font-weight:800}
html[lang="fa"] .imperial-footer{background:var(--editorial-navy);border-top:4px solid var(--editorial-gold)}
html[lang="fa"] .imperial-footer :where(h2,h3,strong){color:#fff}
html[lang="fa"] .imperial-footer :where(p,a,span){color:#e8e0d3}
html[lang="fa"] .imperial-footer a:hover{color:#f3ca75}

/* Responsive contract: 320, 360, 390, 768, 1024 and 1440 widths. */
@media (max-width:1024px){
  .editorial-lead-shell{grid-template-columns:1fr}
  .editorial-lead-side{grid-template-columns:repeat(2,1fr);grid-template-rows:none}
  .editorial-card-grid{grid-template-columns:repeat(2,1fr)}
  .editorial-path-grid{grid-template-columns:repeat(3,1fr)}
  .editorial-path-grid a{border-bottom:1px solid var(--editorial-line)}
  .editorial-timeline ol{grid-template-columns:repeat(3,1fr);row-gap:22px}
  html[lang="fa"] .master-search{width:min(360px,38vw)}
}
@media (max-width:768px){
  html[lang="fa"] .container,
  html[lang="fa"] .culture-top,
  html[lang="fa"] .culture-nav,
  html[lang="fa"] .page-hero{width:min(100% - 28px,1180px)}
  .editorial-utility p{display:none}
  .editorial-utility-inner{justify-content:center}
  html[lang="fa"] .master-topbar-inner{min-height:72px;gap:12px}
  html[lang="fa"] .master-logo{min-width:0;margin-left:auto}
  html[lang="fa"] .imperial-logo-image{width:168px}
  html[lang="fa"] .master-search{order:4;width:100%;display:flex;margin:0 0 12px}
  html[lang="fa"] .master-topbar-inner{flex-wrap:wrap}
  html[lang="fa"] .master-contact-actions{display:none}
  html[lang="fa"] .menu-toggle{display:inline-flex;min-width:46px;min-height:46px;align-items:center;justify-content:center}
  html[lang="fa"] .main-nav{align-items:stretch;justify-content:start}
  html[lang="fa"] .main-nav>a,
  html[lang="fa"] .main-nav>div>button,
  html[lang="fa"] .editorial-more>summary{width:100%;text-align:right;min-height:44px;display:flex;align-items:center}
  .editorial-more-panel{position:static;width:100%;box-shadow:none;margin-top:4px}
  .editorial-lead-feature,.editorial-lead-copy{min-height:430px}
  .editorial-lead-copy{width:100%;padding:34px}
  .editorial-lead-feature::after{background:linear-gradient(0deg,rgba(8,28,44,.9),rgba(8,28,44,.14) 82%)}
  .editorial-lead-side{grid-template-columns:1fr}
  .editorial-card-grid{grid-template-columns:repeat(2,1fr)}
  .editorial-path-grid{grid-template-columns:repeat(2,1fr)}
  .editorial-timeline{padding:22px 16px}
  .editorial-timeline ol{grid-template-columns:repeat(2,1fr)}
  html[lang="fa"] .culture-top{min-height:72px}
  html[lang="fa"] .culture-top img{width:165px}
  html[lang="fa"] .culture-languages{font-size:.78rem}
  html[lang="fa"] .culture-nav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:12px;scrollbar-width:thin}
  html[lang="fa"] .page-hero .container{padding:34px 24px}
  html[lang="fa"] .section>.container.culture-reading,
  html[lang="fa"] .culture-reading{width:calc(100% - 28px);padding:24px 18px;border-radius:18px}
  html[lang="fa"] :where(.culture-toc,.era-toc) ul{columns:1}
}
@media (max-width:480px){
  .editorial-utility nav{gap:12px;font-size:.73rem}
  html[lang="fa"] .imperial-logo-image{width:148px}
  .editorial-home-intro{padding-top:14px}
  .editorial-lead-feature,.editorial-lead-copy{min-height:410px}
  .editorial-lead-copy{padding:26px 22px;justify-content:flex-end}
  .editorial-lead-copy h1{font-size:2.28rem}
  .editorial-lead-card{min-height:205px}
  .editorial-card-grid{grid-template-columns:1fr}
  .editorial-article-card{display:grid;grid-template-columns:116px 1fr}
  .editorial-article-card img{height:100%;min-height:150px}
  .editorial-article-card div{padding:14px}
  .editorial-path-grid{grid-template-columns:1fr 1fr}
  .editorial-path-grid a{padding:16px 8px;font-size:.84rem}
  .editorial-timeline ol{grid-template-columns:1fr}
  .editorial-timeline li{text-align:right;padding:10px 28px 10px 0;border-top:0;border-right:2px solid #c9aa69}
  .editorial-timeline li::before{top:17px;right:-7px}
  html[lang="fa"] .culture-languages a{padding:6px 8px}
  html[lang="fa"] .page-hero{border-radius:16px}
  html[lang="fa"] .page-hero h1{font-size:2rem}
  html[lang="fa"] .page-hero .container{padding:28px 20px}
  html[lang="fa"] .culture-gallery img{max-height:360px}
}
@media (max-width:360px){
  html[lang="fa"] .container,
  html[lang="fa"] .culture-top,
  html[lang="fa"] .culture-nav,
  html[lang="fa"] .page-hero{width:calc(100% - 20px)}
  .editorial-utility nav{gap:8px}
  html[lang="fa"] .imperial-logo-image{width:136px}
  .editorial-lead-copy{padding:24px 18px}
  .editorial-lead-copy h1{font-size:2.02rem}
  .editorial-article-card{grid-template-columns:100px 1fr}
  .editorial-path-grid{grid-template-columns:1fr}
  html[lang="fa"] .section>.container.culture-reading,
  html[lang="fa"] .culture-reading{width:calc(100% - 20px);padding:20px 14px}
}
@media (prefers-reduced-motion:reduce){
  html[lang="fa"]{scroll-behavior:auto}
  html[lang="fa"] *,html[lang="fa"] *::before,html[lang="fa"] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print{
  .editorial-utility,.editorial-home-intro,.editorial-fresh,.editorial-paths,.master-site-header,.floating-whatsapp,.back-to-top,.cookie{display:none!important}
  html[lang="fa"] body{background:#fff;color:#000}
  html[lang="fa"] .culture-reading{box-shadow:none;border:0;max-width:none;padding:0}
}

/*
 * Checkpoint 141 corrective layout pass.
 *
 * The legacy Imperial stylesheet fixes the shared masthead to a single-row
 * height and absolutely positions its navigation.  The approved editorial
 * masthead has a utility row, a brand/search row and a navigation row, so the
 * old geometry made the rows overlap the page.  Keep these selectors scoped
 * to Persian documents and deliberately more specific than the legacy rules.
 */
html[lang="fa"] body>header.master-site-header[data-header]{
  box-sizing:border-box!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  position:relative!important;
  top:auto!important;
}
html[lang="fa"] body>header.master-site-header[data-header] .editorial-utility,
html[lang="fa"] body>header.master-site-header[data-header] .master-topbar,
html[lang="fa"] body>header.master-site-header[data-header] .master-topbar-inner{
  box-sizing:border-box!important;
}

/* Standalone Persian culture/history pages use a compact two-row header. */
html[lang="fa"] body.culture-page>header.site-header.master-site-header:not([data-header]){
  box-sizing:border-box!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  position:relative!important;
  top:auto!important;
  background:var(--editorial-navy)!important;
}
html[lang="fa"] body.culture-page>header.site-header.master-site-header:not([data-header]) .culture-top{
  box-sizing:border-box!important;
  height:auto!important;
  min-height:82px!important;
  padding-block:14px!important;
}
html[lang="fa"] body.culture-page>header.site-header.master-site-header:not([data-header]) .culture-nav{
  box-sizing:border-box!important;
  position:static!important;
  inset:auto!important;
  height:auto!important;
  min-height:54px!important;
  padding-block:8px 14px!important;
}
html[lang="fa"] body.culture-page .page-hero h1{
  font-size:clamp(2rem,4.2vw,3.6rem)!important;
  overflow-wrap:anywhere;
}

/* Equal gallery crops prevent stretched cards and large empty areas. */
html[lang="fa"] body.family-homepage .family-gallery-grid{
  align-items:stretch!important;
}
html[lang="fa"] body.family-homepage .family-gallery-grid>figure{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}
html[lang="fa"] body.family-homepage .family-gallery-grid>figure>img{
  display:block!important;
  width:100%!important;
  height:230px!important;
  min-height:230px!important;
  aspect-ratio:16/10!important;
  object-fit:cover!important;
}
html[lang="fa"] body.family-homepage .family-gallery-grid>figure>figcaption{
  min-height:56px;
  display:flex;
  align-items:center;
}
html[lang="fa"] body.family-homepage .family-gallery-grid>figure>[data-gallery-open]{
  margin-top:auto!important;
  align-self:flex-start;
}

@media (min-width:993px){
  html[lang="fa"] body>header.master-site-header[data-header] .master-topbar,
  html[lang="fa"] body>header.master-site-header[data-header] .master-topbar-inner{
    height:auto!important;
    min-height:82px!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .master-topbar-inner{
    display:grid!important;
    grid-template-columns:minmax(210px,248px) minmax(260px,420px) auto!important;
    align-items:center!important;
    gap:24px!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .master-navrow{
    box-sizing:border-box!important;
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    left:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:54px!important;
    pointer-events:auto!important;
    background:#0d2637!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .master-navrow-inner,
  html[lang="fa"] body>header.master-site-header[data-header] .main-nav{
    box-sizing:border-box!important;
    height:auto!important;
    min-height:54px!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .main-nav{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px 5px!important;
    padding:5px 0!important;
    white-space:normal!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .main-nav>a,
  html[lang="fa"] body>header.master-site-header[data-header] .guide-menu-toggle{
    box-sizing:border-box!important;
    height:auto!important;
    min-height:44px!important;
    padding:8px 10px!important;
  }
}

@media (max-width:992px){
  html[lang="fa"] body>header.master-site-header[data-header]{
    height:78px!important;
    min-height:78px!important;
    position:relative!important;
    z-index:200!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .editorial-utility{
    display:none!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .master-topbar,
  html[lang="fa"] body>header.master-site-header[data-header] .master-topbar-inner{
    height:78px!important;
    min-height:78px!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .master-topbar-inner{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:10px!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .master-search{
    display:none!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .master-navrow{
    box-sizing:border-box!important;
    position:absolute!important;
    inset:100% 0 auto!important;
    top:100%!important;
    right:0!important;
    left:0!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    pointer-events:auto!important;
    background:#081c2c!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .master-navrow-inner{
    box-sizing:border-box!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .main-nav{
    box-sizing:border-box!important;
    display:none!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:calc(100svh - 78px)!important;
    overflow-y:auto!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    padding:10px 18px 18px!important;
    white-space:normal!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .main-nav.open{
    display:flex!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .main-nav>a,
  html[lang="fa"] body>header.master-site-header[data-header] .guide-nav-item,
  html[lang="fa"] body>header.master-site-header[data-header] .editorial-more{
    width:100%!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .main-nav>a,
  html[lang="fa"] body>header.master-site-header[data-header] .guide-menu-toggle,
  html[lang="fa"] body>header.master-site-header[data-header] .editorial-more>summary{
    box-sizing:border-box!important;
    width:100%!important;
    height:auto!important;
    min-height:48px!important;
    padding:10px 8px!important;
    display:flex!important;
    align-items:center!important;
    text-align:right!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .editorial-more-panel{
    position:static!important;
    width:100%!important;
    box-shadow:none!important;
  }
  html[lang="fa"] body.culture-page>header.site-header.master-site-header:not([data-header]) .culture-nav{
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
    scrollbar-width:thin;
  }
}

@media (max-width:520px){
  html[lang="fa"] body>header.master-site-header[data-header],
  html[lang="fa"] body>header.master-site-header[data-header] .master-topbar,
  html[lang="fa"] body>header.master-site-header[data-header] .master-topbar-inner{
    height:72px!important;
    min-height:72px!important;
  }
  html[lang="fa"] body>header.master-site-header[data-header] .main-nav{
    max-height:calc(100svh - 72px)!important;
  }
  html[lang="fa"] body.family-homepage .family-gallery-grid>figure>img{
    height:210px!important;
    min-height:210px!important;
  }
}

