/* ==========================================================================
   Refresh layer (2026-11): keeps the theme's look (IRANSans, teal #46bec7,
   navy #283848, card layout) and tidies spacing, cards, type and hover states.
   Loaded after the skin and portal CSS by HomePage05 / InsidePage*.ascx.
   Delete this file and its DnnCssInclude lines to roll back.
   ========================================================================== */
:root {
  /* identity: navy for header/footer/headings, teal only for links and buttons, saffron (from the header calligraphy) only for emphasis */
  --rf-teal: #1f7a80; --rf-teal-d: #156a70; --rf-teal-l: #e8f5f6;   /* #1f7a80 on white 5.2:1, #156a70 6.4:1 */
  --rf-navy: #283848; --rf-ink: #283848; --rf-text: #4a5561; --rf-mute: #646d75;   /* text 7.6:1, mute 5.4:1 on white */
  --rf-line: #e3e7ea; --rf-soft: #f3f5f6; --rf-r: 10px; --rf-shadow: 0 10px 26px rgba(40,56,72,.10);
  --rf-accent: #b9822a; --rf-accent-d: #8a5d14; --rf-accent-l: #faf2e4;   /* accent = rules/dots/numbers (3:1 non-text); accent-d = accent-coloured text (5.6:1) */
  --rf-surface: #fff; --rf-bg: #f6f7f7;
  /* one type scale: 36 / 26 / 20 / 17 / 13 */
  --rf-fs-1: 36px; --rf-fs-2: 26px; --rf-fs-3: 20px; --rf-fs-4: 17px; --rf-fs-5: 13px; --rf-measure: 40em;   /* ~70 Persian characters at 17px (IRANSans '0' is narrow, so 70ch would be only ~510px) */
}

body, html { color: var(--rf-text); }
a { transition: color .2s; }

/* ---------- header ---------- */
#header3 .header-bottom { min-height: 84px; }
/* top menu: hover/current = teal text, current also a teal underline (no filled teal box) */
#dnngo_megamenu > div > ul > li > a > span { color: var(--rf-ink); }
#dnngo_megamenu > div > ul > li:is(:hover, .current, .menu_hover) > a > span,
.roll_menu.roll_activated #dnngo_megamenu > div > ul > li:is(:hover, .current, .menu_hover) > a > span { background-color: transparent; color: var(--rf-teal-d); }
#dnngo_megamenu > div > ul > li.current > a > span { text-decoration: underline 2px var(--rf-teal); text-underline-offset: 12px; }
#dnngo_megamenu > div > ul > li.dir:is(:hover, .current, .menu_hover) > a > span:after,
.roll_menu.roll_activated #dnngo_megamenu > div > ul > li.dir:is(:hover, .current, .menu_hover) > a > span:after { border-color: currentColor; }
/* basmala bar: same calligraphy, slimmer */
.headertopBox .header-top { height: 24px; padding: 0; background-size: auto 20px; }
.dnngo_menuslide .dnngo_slide_menu { border-radius: 0 0 var(--rf-r) var(--rf-r); box-shadow: var(--rf-shadow); }
header.header_bg { box-shadow: 0 2px 12px rgba(40,56,72,.06); }

/* ---------- section headings: teal bar + title ---------- */
.Home03-heading02, .Home05-heading01 { font-weight: bold; color: var(--rf-ink); }
.Home03-heading02 a { color: var(--rf-ink); }
.Home03-heading02 a:hover { color: var(--rf-teal-d); }

/* ---------- home: four pillar cards ---------- */
.home16-ibox .cont { background: #fff; border: 1px solid var(--rf-line) !important; border-radius: var(--rf-r) !important; transition: transform .25s, box-shadow .25s, border-color .25s; }
@media (hover: hover) { .home16-ibox .cont:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(40,56,72,.10); border-color: #d3eef0 !important; } }
.home16-ibox .icon { box-shadow: 0 0 0 7px #fff, 0 6px 18px rgba(70,190,199,.35); }
.home16-ibox h3 a { color: var(--rf-teal-d); }
.home16-ibox p { font-size: 14px; line-height: 2; color: var(--rf-text); }

/* ---------- home: latest-article columns (LatestArticles template) ---------- */
.newscontainer01 { background: #fff; border-radius: var(--rf-r); overflow: hidden; margin: 0 0 14px !important; box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: box-shadow .2s; }
.newscontainer01:hover { box-shadow: var(--rf-shadow); }
.newscontainer01 .title a { color: var(--rf-ink); font-weight: bold; }
.newscontainer01 .title a:hover { color: var(--rf-teal-d); }
.newscontainer01 .summary { font-size: 13px; line-height: 1.9; color: var(--rf-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* date as a compact teal tile beside the text, not a full-height bar */
.ImageTitleSummary .newscontainer01 { display: flex; align-items: flex-start; gap: 12px; padding: 12px !important; }
.ImageTitleSummary .newscontainer01 > .col-sm-2 { flex: 0 0 62px; width: 62px; height: auto !important; padding: 0; background: none !important; float: none; }
.ImageTitleSummary .newscontainer01 > .col-sm-10 { flex: 1; width: auto; padding: 0 !important; float: none; }
.ImageTitleSummary .newscontainer01 > .clear_float { display: none; }
.ImageTitleSummary .datepane01 { background: none; color: var(--rf-mute); padding: 0; font-size: var(--rf-fs-5); line-height: 1.7; }   /* plain date, no teal tile (spec: the date must not outweigh the title) */
.newscontainer01 .title .fa-caret-left { display: none; }
.Home03-Container02 .Home03-heading02 { display: inline-flex; align-items: center; gap: 10px; }
.Home03-Container02 .Home03-heading02::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--rf-teal); }

/* ---------- home: reflections list + special dossiers ---------- */
ul.linkStyle { background: #fff; border: 1px solid var(--rf-line); border-radius: var(--rf-r); padding: 6px 20px !important; }
ul.linkStyle li { border-bottom: 1px solid var(--rf-line); padding: 9px 0 !important; height: auto !important; }
ul.linkStyle li:last-child { border-bottom: 0; }
ul.linkStyle li a { color: var(--rf-ink); font-size: 14px; }
ul.linkStyle li a:hover { color: var(--rf-teal-d); }
.featurecontent { border-radius: var(--rf-r); border-color: transparent !important; transition: background-color .2s, box-shadow .2s; }
.featurecontent:hover { background-color: #fff !important; box-shadow: var(--rf-shadow); }
.featurecontent a span { color: var(--rf-ink); }

/* ---------- home: urban governance band ---------- */
.multimedia .Home05-Container01 > p { max-width: 960px; margin-inline: auto; line-height: 2.15; font-size: 14px; }
.multimedia .description-button { border-radius: 8px; transition: background-color .2s; }
.multimedia .description-button:hover { background-color: var(--rf-teal-d) !important; }

/* ---------- inner pages: news search box ---------- */
#articleSearchFormSmall { display: flex; justify-content: flex-end; margin: 18px 0 6px; }
#articleSearchFormSmall input[type=text] { border: 1px solid var(--rf-line); border-radius: 99px; padding: 6px 16px; height: 38px; min-width: 240px; }
#articleSearchFormSmall input[type=submit], #articleSearchFormSmall .button, #articleSearchFormSmall a { border: 0; border-radius: 99px; background: var(--rf-teal); color: #fff; padding: 0 18px; height: 38px; margin-inline-start: 6px; cursor: pointer; }

/* ---------- archive listing (NA Standard Listing.Item) ---------- */
.PageName { font-size: 24px; font-weight: bold; color: var(--rf-ink); display: flex; align-items: center; gap: 10px; }
.PageName::before { content: ""; width: 4px; height: 24px; background: var(--rf-teal); border-radius: 2px; }
.newscontainer { border: 1px solid var(--rf-line) !important; border-radius: var(--rf-r); margin-inline: 0 !important; transition: box-shadow .2s, border-color .2s; }
.newscontainer:hover { box-shadow: var(--rf-shadow); border-color: #d3eef0 !important; }
.newscontainer .image img { border-radius: 8px; }
.newscontainer .title a { color: var(--rf-ink); font-size: 16px; font-weight: bold; line-height: 1.8; }
.newscontainer .title a:hover { color: var(--rf-teal-d); }
.newscontainer .summary { font-size: 13.5px; line-height: 2; color: #555; }
.newscontainer .subtitle { color: var(--rf-teal-d); }
.newscontainer .date { border-radius: 8px; background: var(--rf-soft) !important; border-color: var(--rf-line) !important; }
.PagingTable { width: 100%; margin-top: 18px; }
.PagingTable a, .PagingTable span { display: inline-block; min-width: 34px; text-align: center; border: 1px solid var(--rf-line); border-radius: 8px; padding: 2px 8px; margin: 2px; }
.PagingTable a:hover { border-color: var(--rf-teal); color: var(--rf-teal-d); }

/* ---------- article view (NA Standard View.Item) ---------- */
.ArticleView .title { font-size: var(--rf-fs-2); line-height: 1.6; color: var(--rf-ink); }
.ArticleView .subtitle { color: var(--rf-teal-d); font-size: 13.5px; }
.ArticleView .summary { font-size: 16px; line-height: 2.1; color: var(--rf-ink); background: var(--rf-teal-l); border-inline-start: 4px solid var(--rf-teal); border-radius: 8px 0 0 8px; padding: 14px 18px; margin: 12px 0 18px; }
.ArticleView .image img { border-radius: var(--rf-r); }
.ArticleView .description01 { font-size: var(--rf-fs-4); line-height: 2.1; color: var(--rf-text); text-align: start; max-width: var(--rf-measure); }
.ArticleView .description01 p { margin-bottom: 1em; }
.ArticleView .tags a { display: inline-block; background: var(--rf-teal-l); color: var(--rf-teal-d); border-radius: 99px; padding: 0 12px; margin: 2px; font-size: 13px; }
.ArticleView .section .headding { border-bottom: 1px solid var(--rf-line); }
.ArticleView .home04-social02 a span { border-radius: 8px; transition: transform .2s; }
@media (hover: hover) { .ArticleView .home04-social02 a:hover span { transform: translateY(-2px); } }
/* section headers: icon in a teal circle + title on one line */
.ArticleView .section::after { content: ""; display: table; clear: both; }
.ArticleView .section .headding { display: flex; align-items: center; gap: 10px; padding: 0 0 10px; margin: 28px 0 14px; border-bottom: 1px solid var(--rf-line); font-weight: bold; color: var(--rf-ink); font-size: 15px; }
.ArticleView .section .headding .faIcon { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--rf-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; float: none; margin: 0; }
.ArticleView .section .headding .faIcon .fa { color: #fff; }
.ArticleView .calendar .headding { margin-top: 0; font-weight: normal; color: var(--rf-mute); font-size: 13px; }
.ArticleView .calendar .headding .controls { margin-inline-start: auto; }
.ArticleView .home04-social02 { display: flex; gap: 8px; flex-wrap: wrap; }
/* related images */
ul.articleImages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
ul.articleImages li { float: none !important; margin: 0 !important; }
ul.articleImages img { border-radius: 8px; display: block; transition: opacity .2s; }
ul.articleImages a:hover img { opacity: .85; }
/* rating: radios in one row */
.postRating .Normal { display: inline-flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; direction: rtl; }
.postRating input[type=radio] { accent-color: var(--rf-teal); margin: 0 0 0 3px; }
/* comments */
.articleComments_bg { border-radius: var(--rf-r); }
.postComment > p, .postComment > .Normal { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; max-width: 520px; }
.postComment > p > .Normal { order: -1; font-size: 13px; color: var(--rf-ink); }
.postComment input[type=text], .postComment textarea { border: 1px solid var(--rf-line); border-radius: 8px; padding: 8px 12px; width: 100% !important; max-width: 520px; background: #fff; }
.postComment input[type=text]:focus, .postComment textarea:focus { outline: 0; border-color: var(--rf-teal); box-shadow: 0 0 0 3px var(--rf-teal-l); }
.postComment > .Normal img { align-self: flex-start; border-radius: 6px; }
.postComment input[type=button] { background: var(--rf-teal); color: #fff; border: 0; border-radius: 8px; padding: 10px 28px; cursor: pointer; align-self: flex-start; }
.postComment input[type=button]:hover { background: var(--rf-teal-d); }
.postComment #Notify .Normal { display: flex; align-items: center; gap: 6px; }

/* ---------- sidebar boxes (Container0003: categories, tags) ---------- */
.Container0003 { border: 1px solid var(--rf-line); border-radius: var(--rf-r); overflow: hidden; margin-bottom: 22px !important; }
.Container0003 .dnntitle { border: 0 !important; }
.Container0003_icon { background: var(--rf-navy) !important; }
.Container0003 .title1 { color: var(--rf-ink); font-weight: bold; }
.listmeeting li { border-bottom: 1px dashed var(--rf-line) !important; }
.listmeeting li:last-child { border-bottom: 0 !important; }
.listmeeting li a { color: var(--rf-ink); }
.listmeeting li a:hover { color: var(--rf-teal-d); }
a.tag { border-radius: 4px; transition: background-color .2s; }
a.tag:hover { background: var(--rf-navy) !important; color: #fff !important; }

/* ---------- footer ---------- */
.footer_box a:hover { color: #6fd3db !important; }

/* ---------- long-form text in inner pages (HTML modules): one type scale, 17px / 2 / ~70ch, right-aligned ---------- */
.is-inside #dnn_content .DnnModule-DNN_HTML .Normal { font-size: var(--rf-fs-4); line-height: 2; color: var(--rf-text); }
/* centred lines (headings, basmala) keep the full column so they stay centred on the page */
.is-inside #dnn_content .DnnModule-DNN_HTML .Normal :is(p, ul, ol, dl, h2, h3, h4, blockquote):not(.center, .text-center, [align="center"], [style*="center"], .aa-cards, .aa-chips) { max-width: var(--rf-measure); }
.is-inside #dnn_content .DnnModule-DNN_HTML .Normal :is(p, li):not(:is(.aa-card, .aa-cards, .aa-chips, .aa-note, .aa-toc, .aa-quote, .aa-timeline) *) { font-size: var(--rf-fs-4); line-height: 2; }
.is-inside #dnn_content .DnnModule-DNN_HTML .Normal h1:not(.aa-title) { font-size: var(--rf-fs-1); line-height: 1.5; color: var(--rf-ink); font-weight: bold; margin: 0 0 .6em; }
.is-inside #dnn_content .DnnModule-DNN_HTML .Normal h2 { font-size: var(--rf-fs-2); line-height: 1.6; color: var(--rf-ink); font-weight: bold; margin: 1.6em 0 .6em; }
.is-inside #dnn_content .DnnModule-DNN_HTML .Normal h3 { font-size: var(--rf-fs-3); line-height: 1.7; color: var(--rf-ink); font-weight: bold; margin: 1.4em 0 .5em; }
.is-inside #dnn_content .DnnModule-DNN_HTML .Normal h4 { font-size: var(--rf-fs-4); line-height: 1.8; color: var(--rf-ink); font-weight: bold; margin: 1.2em 0 .4em; }
.is-inside #dnn_content .DnnModule-DNN_HTML .Normal :is(h1, h2, h3, h4):first-child { margin-top: 0; }
/* pasted Word text often carries text-align: justify; Persian justify leaves uneven gaps */
:is(.is-inside #dnn_content .Normal, .ArticleView .description01) [style*="justify"] { text-align: start !important; }
.is-inside #dnn_content .Normal [align="justify"] { text-align: start !important; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  .ArticleView .description01, .home16-ibox p { text-align: start; }
  .ArticleView .title { font-size: 22px; }
  :root { --rf-fs-1: 28px; --rf-fs-2: 22px; --rf-fs-3: 19px; }
  .ArticleView .summary { font-size: 15px; }
  #articleSearchFormSmall input[type=text] { min-width: 0; flex: 1; }
}

/* ==========================================================================
   Shared content classes (round 5). Used by HTML modules and article templates.
   Colours come only from tokens, so dark.css only has to retune the tokens.
   ========================================================================== */
.aa-lead { font-size: 19px; line-height: 2; color: var(--rf-ink); margin: 0 0 1.2em; max-width: var(--rf-measure); }
.aa-meta { display: block; font-size: var(--rf-fs-5); line-height: 1.8; color: var(--rf-mute); font-weight: normal; }
.aa-meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--rf-line); }

/* table of contents */
.aa-toc { background: var(--rf-soft); border: 1px solid var(--rf-line); border-inline-start: 3px solid var(--rf-teal); border-radius: var(--rf-r); padding: 14px 20px; margin: 0 0 24px; max-width: var(--rf-measure); }
.aa-toc h2, .aa-toc h3 { font-size: 15px !important; margin: 0 0 8px !important; color: var(--rf-ink); font-weight: bold; }
.aa-toc ol, .aa-toc ul { margin: 0; padding-inline-start: 1.4em; }
.aa-toc li { margin: 2px 0; line-height: 1.9; font-size: 15px; }
.aa-toc a { color: var(--rf-teal-d); }
.aa-toc a:hover { text-decoration: underline; }
@media (min-width: 992px) { .aa-toc.is-sticky { position: sticky; top: 96px; } }

/* timeline: saffron dots on a thin rail, years in tabular figures */
.aa-timeline { list-style: none; margin: 0 0 24px; padding: 0; position: relative; max-width: var(--rf-measure); }
.aa-timeline::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 6px; width: 2px; background: var(--rf-line); }
.aa-timeline > li { position: relative; padding-inline-start: 30px; margin: 0 0 14px; line-height: 2; }
.aa-timeline > li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 14px; height: 14px; border-radius: 50%; background: var(--rf-accent); box-shadow: 0 0 0 3px var(--rf-surface); }
.aa-year { display: inline-block; min-width: 3.2em; font-weight: bold; color: var(--rf-accent-d); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; margin-inline-end: 6px; }

/* pull quote with a saffron rule */
blockquote.aa-quote, .aa-quote { font-style: normal; border: 0; border-inline-start: 4px solid var(--rf-accent); background: none; margin: 24px 0; padding: 4px 20px; font-size: 19px; line-height: 2; color: var(--rf-ink); max-width: var(--rf-measure); }
.aa-quote p { font-size: inherit; margin: 0 0 .4em; }
.aa-quote footer, .aa-quote cite { display: block; font-size: var(--rf-fs-5); font-style: normal; color: var(--rf-mute); }
.aa-quote footer::before { content: none; }

/* soft callout */
.aa-note { background: var(--rf-accent-l); border: 1px solid color-mix(in srgb, var(--rf-accent) 30%, transparent); border-radius: var(--rf-r); padding: 14px 18px; margin: 0 0 20px; line-height: 2; color: var(--rf-ink); max-width: var(--rf-measure); }
.aa-note > :last-child { margin-bottom: 0; }

/* English block, left to right */
.aa-en { direction: ltr; text-align: left; unicode-bidi: isolate; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.75; max-width: 70ch; }
.aa-en h2, .aa-en h3, .aa-en h4 { font-family: inherit; text-align: left; }

/* card grid */
.aa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0 0 24px; }
.aa-card { display: flex; flex-direction: column; gap: 6px; background: var(--rf-surface); border: 1px solid var(--rf-line); border-radius: var(--rf-r); padding: 16px 18px; color: var(--rf-text); text-decoration: none !important; transition: box-shadow .2s, border-color .2s, transform .2s; }
a.aa-card:hover, a.aa-card:focus-visible { border-color: var(--rf-teal); box-shadow: var(--rf-shadow); }
@media (hover: hover) { a.aa-card:hover { transform: translateY(-2px); } }
.aa-card img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 4px; }
.aa-card h3 { font-size: 17px !important; line-height: 1.7; margin: 0 !important; color: var(--rf-ink); font-weight: bold; }
a.aa-card:hover h3 { color: var(--rf-teal-d); }
.aa-card p { font-size: 14px; line-height: 1.9; margin: 0; color: var(--rf-text); }
.aa-card .aa-meta { margin-top: auto; padding-top: 4px; }

/* pill links */
.aa-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.aa-chips > li { margin: 0; }
.aa-chip, a.aa-chip:link, a.aa-chip:visited { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--rf-teal-l); color: var(--rf-teal-d); font-size: 14px; line-height: 1.6; text-decoration: none; border: 1px solid transparent; }
a.aa-chip:hover, a.aa-chip:focus-visible, .aa-chip[aria-current] { background: var(--rf-teal); color: #fff; }

/* button-styled links */
.aa-btn, a.aa-btn:link, a.aa-btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 8px; background: var(--rf-teal); color: #fff; border: 1px solid var(--rf-teal); font-size: 15px; font-weight: bold; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
a.aa-btn:hover, a.aa-btn:focus-visible, button.aa-btn:hover { background: var(--rf-teal-d); border-color: var(--rf-teal-d); color: #fff; }
.aa-btn-ghost, a.aa-btn-ghost:link, a.aa-btn-ghost:visited { background: transparent; color: var(--rf-teal-d); border-color: currentColor; }
a.aa-btn-ghost:hover, a.aa-btn-ghost:focus-visible { background: var(--rf-teal-l); color: var(--rf-teal-d); border-color: var(--rf-teal-d); }

/* page title block at the top of an HTML module (the skin's #page-h1 stays sr-only) */
.aa-title { font-size: var(--rf-fs-1) !important; line-height: 1.5; color: var(--rf-ink); font-weight: bold; margin: 0 0 6px !important; }
.aa-title + .aa-meta { margin: 0 0 20px; }
/* collapsible long text: summary is a ghost button, body at reading width */
details.aa-manifesto { margin: 0 0 24px; max-width: var(--rf-measure); }
details.aa-manifesto > summary { list-style: none; display: inline-flex; margin: 0 0 12px; }
details.aa-manifesto > summary::-webkit-details-marker { display: none; }
details.aa-manifesto > summary::after { content: "\f107"; font-family: FontAwesome; margin-inline-start: 4px; transition: transform .2s; }
details.aa-manifesto[open] > summary::after { transform: rotate(180deg); }
details.aa-manifesto > summary:focus-visible { outline: 2px solid var(--rf-teal); outline-offset: 2px; }
details.aa-manifesto > :not(summary) { font-size: var(--rf-fs-4); line-height: 2; }
.fa-rss { display: inline-block; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23d4a24c'%3E%3Ccircle cx='3' cy='13' r='2'/%3E%3Cpath d='M1 6.5v2.2A6.3 6.3 0 0 1 7.3 15h2.2A8.5 8.5 0 0 0 1 6.5zM1 1.5v2.2A11.3 11.3 0 0 1 12.3 15h2.2A13.5 13.5 0 0 0 1 1.5z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.fa-rss:before { content: none; }   /* this FontAwesome file is a subset without the RSS glyph */

/* footer intro (module 460): two lines + follow line */
.footer_box .footer-about { font-size: 15px; line-height: 2.1; color: rgba(255,255,255,.9); margin: 0 0 10px; max-width: 46em; }
.footer_box .footer-about a, .footer_box .footer-follow a { white-space: nowrap; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rf-accent); }   /* colour: skin's #dnn_ctr460 !important white */
.footer_box .footer-follow { font-size: 14px; line-height: 2; color: rgba(255,255,255,.75); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.footer_box .footer-follow a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.footer_box .footer-follow .fa { color: var(--rf-accent); }

/* contact form (DNN Feedback): show the field labels the module CSS hides */
.dnnForm.FeedbackForm .dnnFormItem .dnnLabel { display: block; width: auto; float: none; text-align: right; margin: 0 0 4px; padding: 0; }
.dnnForm.FeedbackForm .dnnFormItem .dnnLabel label, .dnnForm.FeedbackForm .dnnFormItem .dnnLabel span { font-size: 14px; color: var(--rf-ink); }

/* page-agent extras */
ol.aa-values { list-style-type: persian; padding-inline-start: 1.6em; }
ol.aa-values > li { margin-bottom: .5em; }
ol.aa-values > li::marker { color: var(--rf-accent-d); font-weight: bold; }
.aa-footnotes { font-size: 14px !important; line-height: 1.9; color: var(--rf-mute); border-top: 1px solid var(--rf-line); margin-top: 32px; padding-top: 12px; }
.aa-footnotes :is(p, li) { font-size: 14px !important; line-height: 1.9 !important; }
.aa-fnref { font-size: .75em; vertical-align: super; line-height: 0; }
.aa-fnref a, .aa-fnback { text-decoration: none; color: var(--rf-teal-d); }

/* Copy of the r5 section of NewsArticles Templates/Persian/Template.css. That file is linked without ?cdv= and cached for a day,
   so after a deploy browsers can pair the new article templates with the old Template.css; this versioned copy covers that. */
/* ===== r5 redesign (2026-11): article page, archive list (418), media (477/721). Colours: --rf-* tokens only (dark.css redefines them) ===== */
/* article view (any module using this template): drop the archive sidebar and the archive search box, single centred column */
.row:has(.ArticleView) > div:not(:has(.ArticleView)) { display: none; }
.row:has(.ArticleView) > div:has(.ArticleView) { width: 100%; float: none; }
body:has(.ArticleView) .DnnModule-544 { display: none; }
.ArticleView.na-article { max-width: 780px; margin: 0 auto 24px; padding: 28px 32px; background: var(--rf-surface); border: 1px solid var(--rf-line); border-radius: var(--rf-r); color: var(--rf-text); }
.na-head .subtitle { color: var(--rf-teal-d); font-size: 14px; margin: 0 0 4px; padding: 0; }
.na-head h1.title { font-size: var(--rf-fs-1); line-height: 1.55; color: var(--rf-ink); font-weight: bold; margin: 0 0 10px; }
.na-meta { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--rf-mute); font-size: 13px; margin: 0; }
.na-meta > :not([hidden]) ~ :not([hidden])::before { content: "·"; margin: 0 10px; }
.ArticleView .na-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; padding: 0; }
.ArticleView .na-share .fa { width: 34px; height: 34px; line-height: 34px; font-size: 17px; margin: 0; }
.ArticleView .na-share .fa-print { background: var(--rf-mute); color: #fff; border-radius: 8px; }
.ArticleView .na-lead { font-size: 19px; line-height: 2; color: var(--rf-ink); margin: 18px 0 0; padding: 0; background: none; border: 0; height: auto; text-align: start; }
.na-head { margin-bottom: 22px; }
.ArticleView .content .na-figure { float: none; margin: 0 0 24px; padding: 0; border: 0; }
.ArticleView .na-figure img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--rf-r); } /* original file, never upscaled */
.ArticleView.na-article .description01 { max-width: 70ch; }
.ArticleView .reference { margin: 16px 0; font-size: 14px; }
.ArticleView .content .tags { margin: 10px 0 0; }
.na-relgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.na-rel { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--rf-line); border-radius: var(--rf-r); overflow: hidden; background: var(--rf-surface); color: var(--rf-ink) !important; text-decoration: none !important; font-size: 14px; line-height: 1.8; transition: box-shadow .2s; }
.na-rel:hover { box-shadow: var(--rf-shadow); }
.na-rel img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.na-rel span { padding: 0 12px 12px; }
.na-rel:not(:has(img)) span { padding-top: 12px; }
.na-comments { margin: 28px 0 0; border: 1px solid var(--rf-line); border-radius: var(--rf-r); padding: 0 16px; }
.na-comments > summary { cursor: pointer; padding: 12px 0; font-weight: bold; color: var(--rf-ink); }
.na-comments[open] > summary { border-bottom: 1px solid var(--rf-line); margin-bottom: 12px; }
.na-comments .na-h { font-size: 16px; margin: 18px 0 10px; color: var(--rf-ink); }
.na-bc-title { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (max-width: 767px) {
    .ArticleView.na-article { padding: 18px 16px; border-radius: 0; border-inline: 0; margin-inline: -15px; }
    .na-head h1.title { font-size: var(--rf-fs-2); }
    .ArticleView .na-lead { font-size: 17px; }
    .na-bc-title { max-width: 22ch; }
}
@media print {
    .HeaderPageTitle_bg, footer.footer_box, .footerSeventeenpane, #dnn_TopPane, .skip-link, .na-progress, .na-share, .na-comments, .na-related { display: none !important; }
    .ArticleView.na-article { max-width: none; margin: 0; padding: 0; border: 0; background: none; }
    .ArticleView .na-figure img { width: auto; max-width: 100%; max-height: 9cm; }
    .ArticleView.na-article .description01 { max-width: none; }
}

/* listings (418 archive, 477 media, 721 latest videos): card grid */
.DnnModule-418 .ImageTitleSummary, .DnnModule-477 .ImageTitleSummary, .DnnModule-721 .ImageTitleSummary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.DnnModule-418 .newscontainer, .DnnModule-477 .newscontainer, .DnnModule-721 .newscontainer { display: flex; flex-direction: column; margin: 0 !important; padding: 0; overflow: hidden; background: var(--rf-surface); }
.DnnModule-418 .newscontainer > div, .DnnModule-477 .newscontainer > div, .DnnModule-721 .newscontainer > div { width: 100%; float: none; padding: 0; }
.DnnModule-418 .newscontainer > .col-sm-9, .DnnModule-477 .newscontainer > .col-sm-9, .DnnModule-721 .newscontainer > .col-sm-9 { flex: 1; display: flex; flex-direction: column; padding: 12px 16px 14px; }
.DnnModule-418 .newscontainer .image, .DnnModule-477 .newscontainer .image, .DnnModule-721 .newscontainer .image { float: none; margin: 0; padding: 0; border: 0; aspect-ratio: 3 / 2; position: relative; }
.DnnModule-418 .newscontainer .image img, .DnnModule-477 .newscontainer .image img, .DnnModule-721 .newscontainer .image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.DnnModule-418 .newscontainer .spacer, .DnnModule-418 .newscontainer .clear_float, .DnnModule-477 .newscontainer .spacer, .DnnModule-477 .newscontainer .clear_float, .DnnModule-721 .newscontainer .spacer, .DnnModule-721 .newscontainer .clear_float, .newscontainer .title .fa-caret-left { display: none; }
.DnnModule-418 .newscontainer .summary, .DnnModule-477 .newscontainer .summary, .DnnModule-721 .newscontainer .summary { min-height: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.DnnModule-418 .newscontainer .summary .more, .DnnModule-477 .newscontainer .summary .more { display: none; }
.DnnModule-418 .newscontainer .date, .DnnModule-477 .newscontainer .date, .DnnModule-721 .newscontainer .date { margin-top: auto; float: none; height: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 6px 10px; }
.DnnModule-418 .newscontainer .date > div, .DnnModule-477 .newscontainer .date > div, .DnnModule-721 .newscontainer .date > div { float: none !important; padding: 0; }
.DnnModule-418 .newscontainer .iconpane .cats { color: var(--rf-mute); font-size: 12px; }
@media (max-width: 767px) {
    .DnnModule-418 .ImageTitleSummary, .DnnModule-477 .ImageTitleSummary, .DnnModule-721 .ImageTitleSummary { grid-template-columns: minmax(0, 1fr); }
}
/* archive cards: thumbnail beside the text (twice the articles per screen than stacked cards) */
.DnnModule-418 .newscontainer { flex-direction: row; }
.DnnModule-418 .newscontainer > .col-sm-3 { flex: 0 0 36%; width: 36%; }
.DnnModule-418 .newscontainer .image { aspect-ratio: auto; height: 100%; min-height: 140px; }
.DnnModule-418 .newscontainer .image a { display: block; height: 100%; }
.DnnModule-418 .newscontainer .summary { -webkit-line-clamp: 3; }
.DnnModule-544 #articleSearchFormSmall { display: flex; justify-content: flex-start; margin: 0 0 12px; height: auto; }
@media (max-width: 575px) { .DnnModule-418 .newscontainer > .col-sm-3 { flex-basis: 32%; width: 32%; } .DnnModule-418 .newscontainer > .col-sm-9 { padding: 10px 12px; } .DnnModule-418 .newscontainer .summary { display: none; } .DnnModule-544 #articleSearchFormSmall input[type="text"] { min-width: 0; } }
/* numbered pager: the page numbers first, "صفحه ۱ از ۹۷" under them */
.NewsArticles nav.pn { margin-top: 18px; }
.NewsArticles .PagingTable tr { display: flex; flex-direction: column-reverse; }
.NewsArticles .PagingTable td { display: block; text-align: center !important; padding: 2px 0; }
.NewsArticles .PagingTable td[align="left"] { color: var(--rf-mute); font-size: 13px; }
.NewsArticles .PagingTable a, .NewsArticles .PagingTable span { min-width: 36px; min-height: 36px; line-height: 30px; }
.NewsArticles .PagingTable .pn-current { background: var(--rf-teal); color: #fff; border-color: var(--rf-teal); }

/* archive list (/archive, not the article view): sidebar filters become a compact bar above the list */
.row:has(.DnnModule-418):not(:has(.ArticleView)) { display: flex; flex-direction: column; }
.row:has(.DnnModule-418):not(:has(.ArticleView))::before, .row:has(.DnnModule-418):not(:has(.ArticleView))::after { display: none; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) > div { width: 100%; float: none; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) > div:not(:has(.DnnModule-418)) { order: -1; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .Container0003 { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 0; background: none; margin: 0 0 8px !important; overflow: visible; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .Container0003_icon, .row:has(.DnnModule-418):not(:has(.ArticleView)) .Container0003 .c_footer { display: none; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .Container0003 .dnntitle { flex: 0 0 auto; margin: 0; padding: 0; background: none; border: 0; height: auto; line-height: 1.6; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .Container0003 .title1 { font-size: 13px; color: var(--rf-mute); font-weight: bold; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .Container0003 .contentmain { flex: 1; min-width: 0; padding: 0; background: none; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .listmeeting, .row:has(.DnnModule-418):not(:has(.ArticleView)) #tags471 { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .listmeeting li { flex: none; border: 0 !important; padding: 0; margin: 0; height: auto; width: auto; float: none; background: none; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .listmeeting li .fa { display: none; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .listmeeting a, .row:has(.DnnModule-418):not(:has(.ArticleView)) #tags471 a { display: inline-flex !important; flex: none; align-items: center; white-space: nowrap; padding: 3px 12px !important; margin: 0; min-height: 34px; min-width: 0; border: 1px solid var(--rf-line); border-radius: 99px; background: var(--rf-surface); color: var(--rf-ink); font-size: 13px; line-height: 1.8; text-decoration: none; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .listmeeting a:hover, .row:has(.DnnModule-418):not(:has(.ArticleView)) #tags471 a:hover { border-color: var(--rf-teal); color: var(--rf-teal-d); }
.row:has(.DnnModule-418):not(:has(.ArticleView)) #tags471 { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.row:has(.DnnModule-418):not(:has(.ArticleView)) .DnnModule-471 .Container0003 { margin-bottom: 18px !important; }
@media (max-width: 767px) {
    /* one swipeable row each on phones */
    .row:has(.DnnModule-418):not(:has(.ArticleView)) .listmeeting { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .row:has(.DnnModule-418):not(:has(.ArticleView)) .listmeeting a, .row:has(.DnnModule-418):not(:has(.ArticleView)) #tags471 a { min-height: 44px; } /* touch target */
    .row:has(.DnnModule-418):not(:has(.ArticleView)) .Container0003 { align-items: flex-start; flex-direction: column; gap: 4px; }
    .row:has(.DnnModule-418):not(:has(.ArticleView)) .Container0003 .contentmain { width: 100%; }
}

/* media (/Media): no sidebar; 16:9 thumbnails with a play badge, 3 per row */
.row:has(.DnnModule-477) > div:not(:has(.DnnModule-477)) { display: none; }
.row:has(.DnnModule-477) > div:has(.DnnModule-477) { width: 100%; float: none; }
.DnnModule-477 .ImageTitleSummary, .DnnModule-721 .ImageTitleSummary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.DnnModule-477 .newscontainer .image, .DnnModule-721 .newscontainer .image { aspect-ratio: 16 / 9; }
.DnnModule-477 .newscontainer .image::after, .DnnModule-721 .newscontainer .image::after { content: "\25B6\FE0E"; font-family: Arial, sans-serif; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; line-height: 44px; padding-left: 4px; box-sizing: border-box; text-align: center; border-radius: 50%; background: rgba(0, 0, 0, .65); border: 2px solid rgba(255, 255, 255, .85); color: #fff; font-size: 18px; pointer-events: none; }
.DnnModule-477 .newscontainer .summary, .DnnModule-721 .newscontainer .summary { -webkit-line-clamp: 3; font-size: 13px; }
.na-aparat { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 8px; }
@media (max-width: 991px) { .DnnModule-477 .ImageTitleSummary, .DnnModule-721 .ImageTitleSummary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .DnnModule-477 .ImageTitleSummary, .DnnModule-721 .ImageTitleSummary { grid-template-columns: minmax(0, 1fr); } }
