/* Rayeshmand 2026 - DNN skin. One stylesheet, no frameworks; the font files of IransiteNews (one download for both). Right-to-left first (logical properties).
   Identity (ADR-006): navy ink and blue of the logo, the coral mark beside section titles; a paper-like page. */

@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url("/DesktopModules/IransiteNews/fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url("/DesktopModules/IransiteNews/fonts/Vazirmatn-Bold.woff2") format("woff2"); }

:root {
  --rm-ink: #16205b;          /* headings, header text */
  --rm-text: #2f3445;         /* body text (12:1) */
  --rm-muted: #5d6475;        /* dates, captions (6:1) */
  --rm-link: #005eb9;         /* links (6.4:1) */
  --rm-coral: #e5583f;        /* marks only, never text */
  --rm-coral-text: #b8361f;   /* coral that can be read */
  --rm-teal: #1f9e9c;         /* decoration */
  --rm-paper: #fbfaf6;        /* page */
  --rm-card: #ffffff;
  --rm-rule: #e6e3da;         /* thin lines */
  --rm-soft: #f3f1ea;
  --rm-wrap: 1240px;
  --rm-radius: 10px;
  --rm-shadow: 0 1px 2px rgba(22, 32, 91, .06), 0 8px 24px rgba(22, 32, 91, .06);
}

/* ---------------------------------------------------------------- base */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rm-paper); color: var(--rm-text); font-family: Vazirmatn, Tahoma, sans-serif; font-size: 1rem; line-height: 1.9; }
body, .Normal, .NormalTextBox, input, select, textarea, button { font-family: Vazirmatn, Tahoma, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--rm-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--rm-ink); line-height: 1.5; font-weight: 700; }
/* one heading scale for the site (DNN's default.css gives 2.375 / 2rem, too loud for Persian text) */
h1 { font-size: clamp(1.55rem, 1.1rem + 1.4vw, 2.05rem); line-height: 1.45; }
h2 { font-size: clamp(1.2rem, 1rem + .5vw, 1.4rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.04rem; }
/* DNN's default.css sets .Normal (every HTML module) to a fixed 18px line: Persian text needs the body's 1.9 */
.Normal, .NormalDeleted, .NormalDisabled { line-height: inherit; color: inherit; }
strong, b { font-weight: 700; }

/* text of HTML modules: a readable measure, calm spacing, lists that breathe */
.DnnModule-DNN_HTML .Normal { font-size: 1.03rem; }
.DnnModule-DNN_HTML .Normal > * { max-width: 46rem; }
.DnnModule-DNN_HTML .Normal :is(h2, h3) { margin: 1.9em 0 .55em; }
.DnnModule-DNN_HTML .Normal p { margin: 0 0 1em; }
.DnnModule-DNN_HTML .Normal :is(ul, ol) { margin: 0 0 1.2em; padding-inline-start: 1.3rem; }
.DnnModule-DNN_HTML .Normal li { margin-bottom: .5em; padding-inline-start: .2rem; }
.DnnModule-DNN_HTML .Normal li::marker { color: var(--rm-coral); }
.DnnModule-DNN_HTML .Normal a { text-decoration: underline; text-decoration-color: rgba(0, 94, 185, .35); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--rm-link); outline-offset: 2px; }
.rm-wrap { width: 100%; max-width: var(--rm-wrap); margin-inline: auto; padding-inline: 16px; }
.rm-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--rm-ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.rm-skip:focus { top: 8px; }

/* DNN: empty panes take no room for visitors; in edit mode they stay visible to drop modules */
.DNNEmptyPane { display: none; }
/* empty panes only while the page is in edit mode (an admin who just browses sees the page like a visitor) */
.dnnEditState .DNNEmptyPane, .dnnEditState .rm-row > .DNNEmptyPane { display: block; min-height: 40px; outline: 1px dashed #c8c4b6; }
.dnnEditState .rm-row:not(:has(> :not(.DNNEmptyPane))) { display: flex; }

/* ---------------------------------------------------------------- header */
.rm-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rm-rule); }
.rm-header-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.rm-logo { flex: none; }
.rm-logo img { display: block; height: 52px; width: auto; }
.rm-nav { flex: 1; }
.rm-menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rm-menu > li { position: static; }
.rm-menu > li > a { display: block; white-space: nowrap; padding: 22px 11px 20px; color: var(--rm-ink); font-weight: 700; font-size: .95rem; text-decoration: none; border-bottom: 3px solid transparent; }
.rm-menu > li > a:hover, .rm-menu > li:focus-within > a, .rm-menu > li.rm-open > a { border-bottom-color: var(--rm-coral); }
.rm-menu > li > a[aria-current="page"] { color: var(--rm-link); }
.rm-tools { display: flex; align-items: center; gap: 10px; }

/* mega menu: the subjects in groups */
.rm-mega { position: absolute; inset-inline: 0; top: 100%; display: none; background: #fff; border-top: 1px solid var(--rm-rule); box-shadow: 0 18px 40px rgba(22, 32, 91, .12); }
.rm-has-mega:hover > .rm-mega, .rm-has-mega:focus-within > .rm-mega, .rm-has-mega.rm-open > .rm-mega { display: block; }
.rm-mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 28px; padding-block: 26px; }
.rm-mega h3 { margin: 0 0 8px; padding-inline-start: 10px; border-inline-start: 3px solid var(--rm-coral); font-size: .95rem; }
.rm-mega ul { margin: 0; padding: 0; list-style: none; }
.rm-mega li a { display: block; padding: 3px 13px; color: var(--rm-text); font-size: .9rem; border-radius: 6px; }
.rm-mega li a:hover { background: var(--rm-soft); color: var(--rm-link); text-decoration: none; }
.rm-mega-all { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--rm-rule); font-weight: 700; }

/* search (js/isn-widgets.js of IransiteNews: suggestions while typing) */
.rm-search { position: relative; display: flex; align-items: center; width: 240px; background: var(--rm-soft); border: 1px solid transparent; border-radius: 999px; transition: border-color .15s, background .15s; }
.rm-search:focus-within { background: #fff; border-color: var(--rm-link); }
.rm-search .isn-wsearch-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 16px; font-size: .9rem; outline: 0; }
.rm-search .isn-wsearch-go { width: 38px; height: 38px; border: 0; background: transparent; color: var(--rm-ink); cursor: pointer; padding: 0; display: grid; place-items: center; }
.rm-search .isn-wsearch-suggest { position: absolute; z-index: 60; top: calc(100% + 6px); inset-inline: 0; width: min(420px, 92vw); margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--rm-rule); border-radius: var(--rm-radius); box-shadow: var(--rm-shadow); }
.rm-search .isn-wsearch-suggest a { display: flex; align-items: center; gap: 10px; padding: 6px 12px; color: var(--rm-text); font-size: .88rem; line-height: 1.6; }
.rm-search .isn-wsearch-suggest a:hover, .rm-search .isn-wsearch-suggest a.isn-on { background: var(--rm-soft); text-decoration: none; }
.rm-search .isn-wsearch-suggest img { width: 48px; height: 34px; object-fit: cover; border-radius: 4px; }

.rm-search-btn { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--rm-rule); border-radius: 50%; background: #fff; color: var(--rm-ink); cursor: pointer; }
.rm-search-btn[aria-expanded="true"] { border-color: var(--rm-link); color: var(--rm-link); }
.rm-user { display: flex; gap: 6px; font-size: .88rem; white-space: nowrap; }
/* sign-in (IransiteAuth: the header button, its popup and the login page) in the site colors */
.ia, .ia-so { --ia-primary: var(--rm-ink); --ia-primary-hover: #0e1540; --ia-text: var(--rm-text); --ia-muted: var(--rm-muted); --ia-radius: var(--rm-radius); font-family: inherit; }
.rm-user .ia-so-trigger { min-height: 40px; }

.rm-burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; position: relative; }
.rm-burger span, .rm-burger span::before, .rm-burger span::after { position: absolute; inset-inline-start: 10px; width: 22px; height: 2px; background: var(--rm-ink); content: ""; transition: transform .2s; }
.rm-burger span { top: 20px; }
.rm-burger span::before { top: -7px; inset-inline-start: 0; }
.rm-burger span::after { top: 7px; inset-inline-start: 0; }

.rm-quote:empty, .rm-quote:has(> .DNNEmptyPane:only-child) { display: none; }
.rm-quote { background: var(--rm-soft); border-bottom: 1px solid var(--rm-rule); font-size: .88rem; color: var(--rm-muted); }

/* ---------------------------------------------------------------- page */
.rm-crumbs { padding-block: 14px 0; font-size: .82rem; color: var(--rm-muted); }
.rm-crumbs a { color: var(--rm-muted); }
.rm-crumbs a:hover { color: var(--rm-link); }
.rm-main { padding-block: 24px 48px; min-height: 50vh; }
.rm-row { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 28px; }
.rm-row > * { flex: 1 1 0; min-width: 0; }
.rm-row > .DNNEmptyPane { display: none; }
.rm-col-9 { flex-grow: 3; }
.rm-col-3 { flex-grow: 1; min-width: 260px; }
.rm-full { margin-bottom: 28px; }

/* ---------------------------------------------------------------- containers */
.rm-box { margin-bottom: 28px; }
.rm-box-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.2rem; }
.rm-box-title::before { content: ""; width: 6px; height: 1.1em; border-radius: 2px; background: var(--rm-coral); }
.rm-card-box { background: var(--rm-card); border: 1px solid var(--rm-rule); border-radius: var(--rm-radius); padding: 18px 20px; margin-bottom: 28px; }

/* ---------------------------------------------------------------- IransiteNews in this skin */
.isn { --isn-accent: var(--rm-link); --isn-text: var(--rm-text); --isn-muted: var(--rm-muted); --isn-border: var(--rm-rule); font-family: inherit; }
.isn-details { background: var(--rm-card); border: 1px solid var(--rm-rule); border-radius: var(--rm-radius); padding: clamp(18px, 3vw, 40px); }
.isn-details .isn-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.55; color: var(--rm-ink); }
.isn-details .isn-content { font-size: 1.06rem; line-height: 2.05; }
.isn-details .isn-content h2, .isn-details .isn-content h3 { margin-top: 2em; }
.isn-details .isn-content h2::before { content: ""; display: inline-block; width: 6px; height: .9em; margin-inline-end: 10px; border-radius: 2px; background: var(--rm-coral); vertical-align: -1px; }
.isn-details .isn-content a { color: var(--rm-link); text-decoration: underline; text-decoration-color: rgba(0, 94, 185, .35); text-underline-offset: 4px; }
.isn-details .isn-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.isn-details .isn-content th, .isn-details .isn-content td { border: 1px solid var(--rm-rule); padding: 6px 10px; }
.isn-details .isn-main-image img { border-radius: 8px; }
.isn-list .isn-article { border-bottom-color: var(--rm-rule); }
.isn-list .isn-image img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.isn-list .isn-title { color: var(--rm-ink); font-size: 1.15rem; }
.isn-list .isn-title a:hover { color: var(--rm-link); text-decoration: none; }

/* ---------------------------------------------------------------- footer */
.rm-footer { background: var(--rm-ink); color: #d7dbef; font-size: .92rem; }
.rm-footer a { color: #fff; }
.rm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 44px 28px; }
.rm-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.rm-footer h2::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--rm-coral); }
.rm-footer ul { margin: 0; padding: 0; list-style: none; }
.rm-footer li { margin-bottom: 4px; }
.rm-footer li a { color: #d7dbef; }
.rm-footer li a:hover { color: #fff; }
.rm-footer-logo { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.rm-footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-block: 16px 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #aab1d6; }
.rm-footer-bottom a { color: #aab1d6; }

/* ---------------------------------------------------------------- small screens */
/* the header tools give way as the menu fills the row: first the sign-in becomes an icon and the search narrows,
   then the search also becomes an icon that opens a box under the header (as on phones) */
/* signed in: the user's name gives way first (the avatar stays), the menu then has «پیشخوان» too */
@media (max-width: 1440px) {
  .rm-user .ia-so-name, .rm-user .ia-caret { display: none; }
  .rm-user .ia-so-trigger { padding-inline: 4px; }
  .rm-search { width: 180px; }
}
@media (max-width: 1320px) {
  .rm-search { width: 180px; }
  /* sign-in: a round person icon */
  .rm-user a.ia-so-trigger { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; font-size: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316205b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / 20px no-repeat; border: 1px solid var(--rm-rule); }
}
@media (max-width: 1180px) {
  .rm-menu > li > a { padding-inline: 8px; font-size: .9rem; }
  .rm-search-btn { display: grid; }
  .rm-search { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 16px; width: auto; background: #fff; border-color: var(--rm-link); box-shadow: var(--rm-shadow); }
  .rm-header.rm-search-open .rm-search { display: flex; }
}
@media (max-width: 1024px) {
  .rm-mega-grid { grid-template-columns: repeat(2, 1fr); }
  .rm-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .rm-burger { display: block; }
  .rm-header-row { flex-wrap: wrap; gap: 8px; min-height: 60px; }
  .rm-logo img { height: 42px; }
  .rm-tools { margin-inline-start: auto; }
  /* search: an icon in the header; it opens a box under the header */
  .rm-search-btn { display: grid; }
  .rm-search { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 16px; width: auto; background: #fff; border-color: var(--rm-link); box-shadow: var(--rm-shadow); }
  .rm-header.rm-search-open .rm-search { display: flex; }
  /* the menu opens over the page (it pushed the content down) */
  .rm-nav { display: none; position: absolute; top: 100%; inset-inline: 0; z-index: 45; max-height: calc(100vh - 70px); overflow-y: auto; overscroll-behavior: contain;
    padding: 4px 16px 14px; background: #fff; border-bottom: 1px solid var(--rm-rule); box-shadow: 0 18px 32px rgba(22, 32, 91, .16); }
  .rm-nav.rm-open { display: block; }
  .rm-menu { flex-direction: column; gap: 0; }
  .rm-menu > li > a { padding: 12px 4px; border-bottom: 1px solid var(--rm-rule); }
  .rm-mega { position: static; box-shadow: none; border-top: 0; }
  .rm-has-mega:hover > .rm-mega { display: none; }
  .rm-has-mega.rm-open > .rm-mega { display: block; }
  .rm-mega-grid { grid-template-columns: 1fr 1fr; padding-block: 10px; gap: 14px; }
  .rm-row { gap: 20px; }
  .rm-row > * { flex-basis: 100%; }
  .rm-footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
/* ---------------------------------------------------------------- 404 page (HTML module of tab 24) */
.rm-404 { max-width: 640px; margin: 24px auto 48px; text-align: center; }
.rm-404-code { margin: 0; font-size: 4.5rem; font-weight: 700; line-height: 1.1; color: var(--rm-ink); }
.rm-404-code::after { content: ""; display: block; width: 56px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: var(--rm-coral); }
.rm-404 h1 { margin: 16px 0 8px; color: var(--rm-ink); font-size: 1.5rem; }
.rm-404-search { display: flex; gap: 8px; margin: 18px 0 24px; }
.rm-404 input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--rm-rule); border-radius: var(--rm-radius); background: var(--rm-card); font-size: 1rem; }
.rm-404 button { padding: 10px 20px; border: 0; border-radius: var(--rm-radius); background: var(--rm-ink); color: #fff; font-size: 1rem; cursor: pointer; }
.rm-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rm-404-links a { display: block; padding: 6px 14px; border: 1px solid var(--rm-rule); border-radius: 999px; background: var(--rm-card); color: var(--rm-link); text-decoration: none; }
.rm-404-links a:hover, .rm-404-links a:focus-visible { border-color: var(--rm-link); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .rm-header, .rm-footer, .rm-quote, .rm-crumbs { display: none !important; } body { background: #fff; } }

/* a module with its title hidden: no empty heading */
.rm-box-title:empty, .rm-box-title:not(:has(*)) { display: none; }

/* ---------------------------------------------------------------- lists as cards (several columns) */
.isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-article { display: flex; flex-direction: column; padding: 0 0 16px; border-bottom: 0; background: var(--rm-card); border: 1px solid var(--rm-rule); border-radius: var(--rm-radius); overflow: hidden; }
.isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-article > :not(.isn-image) { margin-inline: 16px; }
.isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-image img { border-radius: 0; margin: 0 0 12px; }
.isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-title { font-size: 1.02rem; line-height: 1.7; margin-top: 4px; }
/* the library (IransiteNews theme Library): book titles are small labels under the shelf */
.isn-theme-Library .isn-articles .isn-book .isn-title { font-size: .78rem; line-height: 1.6; margin-top: 10px; }
.isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-summary, .isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-content-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 16px 0; font-size: .9rem; color: var(--rm-muted); }
.isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-summary * { font-size: inherit; margin: 0; }
.isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-more, .isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-views, .isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-comments, .isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-author { display: none; }
.isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-article:hover { border-color: #cfd6e6; box-shadow: var(--rm-shadow); }
.isn-articles[class*="isn-cols-"]:not(.isn-cols-1) .isn-article:hover .isn-title a { color: var(--rm-link); }
/* the slider and the headlines in this skin */
.isn-layout-slider .isn-slide { border-inline-start: 0 !important; border-radius: var(--rm-radius); overflow: hidden; background: var(--rm-card); border: 1px solid var(--rm-rule) !important; }
.isn-layout-slider .isn-slide-text .isn-title { color: var(--rm-ink); }

/* a row whose panes are all empty takes no room */
.rm-row:not(:has(> :not(.DNNEmptyPane))) { display: none; }
.rm-full.DNNEmptyPane { margin: 0; }

/* news lists: «load more» as a clear button, the classic pager as soft pills */
.isn-load-more, .isn-load-prev { display: block; margin: 22px auto 6px; min-block-size: 46px; padding: 0 34px; border: 0; border-radius: 999px;
  background: var(--rm-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(22, 32, 91, .18); transition: transform .15s, box-shadow .15s; }
.isn-load-more:hover, .isn-load-more:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(22, 32, 91, .25); }
.isn-load-more:disabled { opacity: .6; cursor: progress; }
.isn-load-prev { background: var(--rm-card); color: var(--rm-ink); border: 1px solid var(--rm-rule); box-shadow: none; text-align: center; text-decoration: none; line-height: 46px; inline-size: max-content; }
.isn-pager[hidden] { display: none !important; }

/* ---- «پیشخوان» (admin panel, page 57 and below): menu entry, one head for every page, one look for the MBD lists ---- */
.rm-mega-wide ul { columns: 2; column-gap: 18px; }
.rm-mega-wide { grid-column: span 2; }
.rm-menu-panel > a { color: var(--rm-coral-text) !important; }
.rm-panel-head { margin: 4px 0 22px; padding: 18px 22px 20px; border: 1px solid var(--rm-rule); border-radius: 16px; background: var(--rm-card); box-shadow: var(--rm-shadow); }
.rm-panel-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.rm-panel-nav a { flex: none; padding: 5px 13px; border: 1px solid var(--rm-rule); border-radius: 999px; color: var(--rm-ink); font-size: .88rem; white-space: nowrap; }
.rm-panel-nav a:hover { border-color: var(--rm-link); text-decoration: none; }
.rm-panel-nav a[aria-current="page"] { background: var(--rm-ink); border-color: var(--rm-ink); color: #fff; }
.rm-panel-head h1 { margin: 0; font-size: 1.35rem; }
.rm-panel-head > p { margin: 4px 0 0; color: var(--rm-muted); }
.rm-panel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.rm-panel-cards a { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--rm-rule); border-radius: 12px; background: var(--rm-soft); color: var(--rm-ink); }
.rm-panel-cards a:hover { border-color: var(--rm-coral); text-decoration: none; }
.rm-panel-cards small { color: var(--rm-muted); font-size: .82rem; line-height: 1.7; }
/* lists (MBD grid) inside the panel: panel.css */
@media (max-width: 760px) { .rm-mega-wide { grid-column: auto; } .rm-mega-wide ul { columns: 1; } .rm-panel-head { padding: 14px; } .rm-panel-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }

/* ---------------------------------------------------------------- document pages (rules, terms; HTML module, <article class="rm-doc">) */
.DnnModule-DNN_HTML .Normal > .rm-doc { max-width: 50rem; }
.rm-doc { margin-inline: auto; background: var(--rm-card); border: 1px solid var(--rm-rule); border-radius: 16px; padding: clamp(20px, 4vw, 48px); }
.rm-doc > * { max-width: none; }
.rm-doc h1 { margin: 0 0 .35em; }
.rm-doc .rm-doc-lead { margin: 0 0 1.4em; color: var(--rm-muted); font-size: 1.06rem; }
.rm-doc .rm-doc-toc { margin: 0 0 2em; padding: 14px 18px; border-radius: 12px; background: var(--rm-soft); list-style: none; columns: 2 14rem; column-gap: 24px; }
.rm-doc .rm-doc-toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.rm-doc .rm-doc-toc li::marker { content: none; }
.rm-doc .rm-doc-toc a { color: var(--rm-ink); text-decoration: none; }
.rm-doc .rm-doc-toc a:hover { color: var(--rm-link); }
.rm-doc h2 { display: flex; align-items: baseline; gap: 12px; margin: 2em 0 .7em; padding-top: 1.1em; border-top: 1px solid var(--rm-rule); scroll-margin-top: 90px; }
.rm-doc h2:first-of-type { border-top: 0; padding-top: 0; }
.rm-doc h2 > span { flex: none; display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--rm-ink); color: #fff; font-size: .72em; line-height: 1; }
.rm-doc .rm-doc-note { margin: 1em 0 1.4em; padding: 14px 18px; border-inline-start: 4px solid var(--rm-coral); border-radius: 10px; background: #fdf3ef; }
.rm-doc .rm-doc-note p { margin: 0; }
.rm-doc .rm-doc-note strong { color: var(--rm-coral-text); }
.rm-doc .rm-doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 2em 0 0; padding: 1.2em 0 0; border-top: 1px solid var(--rm-rule); }
.rm-doc .rm-doc-links a { padding: 6px 16px; border: 1px solid var(--rm-rule); border-radius: 999px; text-decoration: none; }
.rm-doc .rm-doc-links a:hover { border-color: var(--rm-link); }

/* ---------------------------------------------------------------- formulas (MathJax, skin.js): left to right inside Persian text */
mjx-container { direction: ltr; unicode-bidi: isolate; }
mjx-container[display="true"] { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: 4px; }
/* an inline formula wider than its line (marked by skin.js): its own scroll, not the page's */
mjx-container[display="true"], mjx-container.rm-math-wide { scrollbar-width: thin; scrollbar-color: #c9cede transparent; }
mjx-container.rm-math-wide { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: middle; padding-block: 2px; }

/* ---------------------------------------------------------------- «سخن روز»: the quotes ticker under the header (IransiteNews.Ticker, Quote.html, HeaderPane) */
.rm-quote .isn-wticker { display: flex; align-items: center; gap: 14px; min-height: 58px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rm-quote .isn-wticker-label { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; color: var(--rm-coral-text) !important; font-size: .82rem; font-weight: 700; }
.rm-quote .isn-wticker-label::before { content: "”"; font-size: 2rem; line-height: .5; color: var(--rm-coral); font-family: Georgia, serif; transform: translateY(5px); }
.rm-quote .isn-wticker-view { flex: 1; min-width: 0; align-self: stretch; position: relative; }
.rm-quote .isn-wticker-item { display: flex; align-items: center; height: 100%; padding-inline: 0 !important; }
.rm-quote .isn-wticker-quote { flex-wrap: wrap; column-gap: .8em; row-gap: 0; line-height: 1.75; }
.rm-quote .isn-wticker-title { color: var(--rm-ink); font-size: .92rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rm-quote .isn-wticker-source { color: var(--rm-muted); font-size: .78rem; }
.rm-quote .isn-wticker-tools { flex: none; border: 0; opacity: .5; transition: opacity .15s; }
.rm-quote .isn-wticker:hover .isn-wticker-tools, .rm-quote .isn-wticker:focus-within .isn-wticker-tools { opacity: 1; }
.rm-quote .isn-wticker-tools button { width: 26px; height: 26px; color: var(--rm-muted); }
/* phones: one running line (skin.js sets data-effect="scroll") */
@media (max-width: 760px) {
  .rm-quote .rm-wrap { padding-inline: 0; }
  .rm-quote .isn-wticker { min-height: 44px; gap: 0; }
  .rm-quote .isn-wticker-label { position: relative; z-index: 1; align-self: stretch; padding-inline: 14px 10px; background: var(--rm-soft); box-shadow: -10px 0 12px var(--rm-soft); }
  .rm-quote .isn-wticker-tools { display: none; }
  .rm-quote .isn-wticker[data-effect="scroll"] .isn-wticker-view { align-self: center; }
  .rm-quote .isn-wticker[data-effect="scroll"] .isn-wticker-item { height: auto; padding-inline: 1.6em !important; }
  .rm-quote .isn-wticker[data-effect="scroll"] .isn-wticker-quote { flex-wrap: nowrap; }
  .rm-quote .isn-wticker[data-effect="scroll"] .isn-wticker-title { display: inline; overflow: visible; white-space: nowrap; font-size: .86rem; }
}

/* ---------------------------------------------------------------- small screens: the category menu in a drawer («دسته‌ها» in the header, skin.js) */
.rm-cat-btn { display: none; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--rm-rule); border-radius: 999px; background: #fff; color: var(--rm-ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.rm-cat-btn:hover, .rm-cat-btn[aria-expanded="true"] { border-color: var(--rm-link); color: var(--rm-link); }
@media (max-width: 1000px) { .rm-cat-btn { display: inline-flex; } }
.rm-drawer[hidden] { display: none; }
.rm-drawer { position: fixed; inset: 0; z-index: 80; }
.rm-drawer-shade { position: absolute; inset: 0; background: rgba(22, 32, 91, .35); animation: rm-fade .2s; }
.rm-drawer-panel { position: absolute; inset-block: 0; inset-inline-start: 0; display: flex; flex-direction: column; width: min(86vw, 340px); background: var(--rm-card); box-shadow: 0 0 40px rgba(22, 32, 91, .2); animation: rm-slide .22s ease-out; }
.rm-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--rm-rule); }
.rm-drawer-head strong { color: var(--rm-ink); }
.rm-drawer-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--rm-soft); color: var(--rm-ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.rm-drawer-body { flex: 1; overflow-y: auto; padding: 10px 12px 24px; overscroll-behavior: contain; }
.rm-drawer-open, .rm-drawer-open body { overflow: hidden; }
@keyframes rm-fade { from { opacity: 0; } }
@keyframes rm-slide { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .rm-drawer-shade, .rm-drawer-panel { animation: none; } }

/* home: the library shelf (IransiteNews module 2696, theme Library) and the latest sample questions (2698) are one row
   that swipes on phones */
@media (max-width: 600px) {
  .isn-list.isn-theme-Library[data-module="2696"] .isn-articles {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 34%; overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .isn-list.isn-theme-Library[data-module="2696"] .isn-articles::-webkit-scrollbar { display: none; }
  .isn-list.isn-theme-Library[data-module="2696"] .isn-book { scroll-snap-align: start; }
  .isn-list[data-module="2698"] .isn-articles[class*="isn-cols-"] {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 6px;
  }
  .isn-list[data-module="2698"] .isn-article { scroll-snap-align: start; }
}

/* footer newsletter (IransiteNews.Newsletter in FooterPane, on every page): one compact line on the dark footer */
.rm-footer-pane { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.rm-footer .isn-widget-newsletter, .rm-footer .isn-newsletter { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.rm-footer .isn-newsletter .isn-widget-title { margin: 0 0 2px; padding: 0; border: 0; font-size: .95rem; color: #fff; }
.rm-footer .isn-newsletter .isn-widget-title::before { display: none; }
.rm-footer .isn-newsletter-intro { margin: 0 0 8px; font-size: .8rem; color: #aab1d6; }
.rm-footer .isn-newsletter-name { display: none; }
.rm-footer .isn-newsletter-row { display: flex; gap: 6px; max-width: 300px; }
.rm-footer .isn-newsletter-email { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; }
.rm-footer .isn-newsletter-email::placeholder { color: #aab1d6; }
.rm-footer .isn-newsletter-send { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: #e5583f; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.rm-footer .isn-newsletter-msg { margin: 6px 0 0; font-size: .82rem; color: #fff; }
.rm-footer .isn-newsletter-msg:empty { display: none; }

/* no publish dates on articles and lists (owner 2026-11-03: most articles are years old); the date stays in the page's
   structured data for search engines, and comments keep theirs */
.rm-main [class*="isn"] time { display: none; }
.rm-main .isn-comment-head time { display: inline; }

/* page change (skin.js): the spinning atom of the logo fades in over the page being left */
.rm-veil { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(251, 250, 246, .82); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; pointer-events: none; }
.rm-veil-on { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.rm-veil svg { animation: rm-veil-spin 1.1s linear infinite; filter: drop-shadow(0 4px 10px rgba(22, 32, 91, .18)); }
@keyframes rm-veil-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rm-veil svg { animation: none; } .rm-veil, .rm-veil-on { transition: none; } }

/* numbered headline lists (داغ‌ترین، پربازدیدترین …): a featured article gets no side line and no other colour there
   (the line beside only some numbers looked like a mistake) */
.isn-headlines .isn-featured { border-inline-start: 0; padding-inline-start: 0; }
.isn-headlines .isn-featured a { color: inherit; }
/* side menu row (SideMenuPane | SideContentPane): the menu stays in view beside long content */
.rm-side-row { align-items: flex-start; }
.rm-side { position: sticky; top: 88px; max-width: 300px; }
@media (max-width: 900px) { .rm-side { position: static; max-width: none; } }
