/* ==========================================================================
   Radman × Bootstrap 5.3 (RTL) bridge
   Load order:  bootstrap.rtl.min.css  →  bootstrap-bridge.css  →  radman.css
   radman.css is the UNCHANGED stylesheet of the original WordPress theme.
   This file does three jobs:
   1) restores the browser-default look that the original design relied on
      where Bootstrap's "reboot" changes it (headings, p, lists, tables ...)
   2) maps the original CSS-grid layouts onto Bootstrap's .container/.row
      (same gaps, same column ratios, same breakpoints as the original)
   3) glue for Bootstrap's Collapse (mobile menu) and Dropdown (account menu)
   Do not put design changes here; change radman.css instead.
   ========================================================================== */

/* ---- 1) reboot neutralisation (element selectors, specificity 0,0,1: any original class rule still wins) ---- */
:root{
  --bs-body-font-family:Vazirmatn,Tahoma,Arial,sans-serif;
  --bs-body-line-height:1.9;
  --bs-body-color:#172033;
  --bs-body-bg:#F5F8FC;
  --bs-heading-color:inherit;
}
h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:0;font-weight:bold;line-height:inherit;color:inherit}
h1{font-size:2em;margin-block:.67em}
h2{font-size:1.5em;margin-block:.83em}
h3{font-size:1.17em;margin-block:1em}
h4{font-size:1em;margin-block:1.33em}
h5{font-size:.83em;margin-block:1.67em}
h6{font-size:.67em;margin-block:2.33em}
p{margin-top:1em;margin-bottom:1em}
ol,ul{margin-top:1em;margin-bottom:1em;padding-right:0;padding-left:0;padding-inline-start:40px}
ol ol,ul ul,ol ul,ul ol{margin-bottom:1em}
dl,dd{margin-bottom:0}
figure{margin:1em 40px}
blockquote{margin:1em 40px}
hr{margin:.5em auto;color:inherit;border:1px inset;opacity:1}
small{font-size:smaller}
b,strong{font-weight:bolder}
img,svg{vertical-align:baseline}
label{display:inline}
table{caption-side:top;border-collapse:separate;border-spacing:2px}
th{text-align:center}
thead,tbody,tfoot,tr,td,th{border-color:currentColor;border-style:none;border-width:0}
a:hover{text-decoration:none}
button:focus:not(:focus-visible){outline:revert}
input,button,select,optgroup,textarea{line-height:normal}
textarea{resize:both}
[role=button]{cursor:auto}
::-webkit-datetime-edit{padding:0}

/* ---- 2) layout: .container / .row replace the original grids ---- */
.container.rdm-container{max-width:none;padding-inline:0}
/* .row has negative side margins of gutter/2 (up to 29px) but the container margin is only 20px on phones:
   clip the invisible overflow so no horizontal scrollbar appears (no content is cut: row children carry the gutter as padding). */
body{overflow-x:clip}
/* grid items may shrink below their content (wide table inside .rdm-table-wrap scrolls instead of widening the page) */
.rdm-dashboard-shell>*{min-width:0}
.rdm-footer-wrap{padding-bottom:50px}

/* gutters (= the original `gap`) */
.rdm-g-18{--bs-gutter-x:18px;--bs-gutter-y:18px}
.rdm-g-22{--bs-gutter-x:22px;--bs-gutter-y:22px}
.rdm-g-24{--bs-gutter-x:24px;--bs-gutter-y:24px}
.rdm-g-42{--bs-gutter-x:42px;--bs-gutter-y:42px}
.rdm-g-55{--bs-gutter-x:55px;--bs-gutter-y:55px}
.rdm-g-56{--bs-gutter-x:56px;--bs-gutter-y:56px}
.rdm-g-58{--bs-gutter-x:58px;--bs-gutter-y:58px}

/* equal columns */
.row.rdm-cols-2>*{width:50%}
.row.rdm-cols-3>*{width:33.33333333%}
.row.rdm-cols-4>*{width:25%}
@media(max-width:1100px){
  .row.rdm-cols-3>*,.row.rdm-cols-4>*{width:50%}
}
@media(max-width:980px){
  .row.rdm-cols-2>*{width:100%}
  .row.rdm-g-55{--bs-gutter-y:24px}
}
@media(max-width:700px){
  .row.rdm-cols-3>*,.row.rdm-cols-4>*{width:100%}
  .row.rdm-g-42{--bs-gutter-x:28px;--bs-gutter-y:28px}
}

/* proportional columns (original fr ratios) */
.row.rdm-row-footer>*,
.row.rdm-row-story>*,
.row.rdm-row-contact>*,
.row.rdm-row-article>*{flex:1 1 0%;width:auto;min-width:0}
.row.rdm-row-footer>:nth-child(1){flex-grow:1.4}
.row.rdm-row-footer>:nth-child(2){flex-grow:.8}
.row.rdm-row-story>:nth-child(1){flex-grow:.9}
.row.rdm-row-story>:nth-child(2){flex-grow:1.1}
.row.rdm-row-contact>:nth-child(2){flex-grow:.9}
.row.rdm-row-article>:nth-child(1){flex:0 0 244px}
@media(max-width:980px){
  .row.rdm-row-story>*,.row.rdm-row-contact>*{flex:0 0 100%;width:100%}
  .row.rdm-row-contact{--bs-gutter-y:24px}
}
@media(max-width:700px){
  .row.rdm-row-footer>*,.row.rdm-row-article>*{flex:0 0 100%;width:100%}
  .row.rdm-row-article>:first-child{order:2}
}

/* ---- 3) Bootstrap Collapse = mobile menu (original used the `hidden` attribute) ---- */
.rdm-mobile-menu.collapse:not(.show){display:none}
.rdm-mobile-menu.collapse.show,.rdm-mobile-menu.collapsing{display:block}
@media(min-width:981px){.rdm-mobile-menu.collapse.show,.rdm-mobile-menu.collapsing{display:none}}

/* ---- 3b) Bootstrap Dropdown = account menu (position:static mode, so original offsets apply) ---- */
.rdm-account-menu.dropdown-menu{margin:0;border-radius:18px}
.rdm-account-menu.dropdown-menu:not(.show){display:none}
.rdm-account-menu.dropdown-menu.show{display:block}
.rdm-account.dropdown{position:relative}
