/*
Theme Name: IranRBS — Kadence Child
Template: kadence
Version: 0.2.0
Text Domain: iranrbs
*/
@font-face {
  font-family: Vazirmatn;
  src: url('./Vazirmatn-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --global-body-font-family: Vazirmatn, Tahoma, sans-serif;
  --global-heading-font-family: Vazirmatn, Tahoma, sans-serif;
  --global-primary-nav-font-family: Vazirmatn, Tahoma, sans-serif;
  --global-palette1: #154c36;
  --global-palette2: #236345;
  --global-palette3: #34463d;
  --global-palette4: #43534a;
  --global-palette5: #506057;
  --global-palette6: #626e66;
  --global-palette7: #edf2e8;
  --global-palette8: #f6f7f2;
  --global-palette9: #ffffff;
  --rbs-green: #154c36;
  --rbs-lime: #cce8ae;
  --rbs-ink: #34463d;
  --rbs-muted: #4c584f;
  --rbs-paper: #f6f7f2;
  --rbs-footer-bg: #202321;
  --rbs-footer-bottom: #191c1a;
}
body, h1, h2, h3, h4, h5, h6, button, input, select, textarea,
.mobile-navigation a, .site-footer {
  font-family: Vazirmatn, Tahoma, sans-serif;
}
body { color: var(--rbs-ink); background: var(--rbs-paper); font-size: 15px; }
.site-container { max-width: 1240px; }
.site-main, .content-area { margin: 0 !important; }
.entry-content-wrap { padding: 0 !important; }
.entry { box-shadow: none !important; background: transparent !important; }
.entry-content { max-width: none !important; }
.entry-hero, .entry-header { display: none; }
.site-header { background: #fff; border-bottom: 1px solid #e2e8df; }
.site-branding img { max-width: 125px !important; max-height: 58px !important; object-fit: contain; }
.site-title { font-size: 16px !important; }
.main-navigation .primary-menu-container > ul > li > a {
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 13px;
  padding-inline: 9px;
}
.mobile-navigation a { font-size: 14px; }
.main-navigation .primary-menu-container > ul > li > a, .mobile-navigation a { color: var(--rbs-ink); }
.site-footer { background: var(--rbs-footer-bottom); color: #fff; font-size: 12px; }
.site-footer a { color: #fff; }
.rbs { direction: rtl; font-family: Vazirmatn, Tahoma, sans-serif; font-size: 15px; line-height: 1.9; }
html[lang^='en'] .rbs { direction: ltr; text-align: left; }
.rbs * { box-sizing: border-box; }
/* Kadence's classic-theme group wrapper must not become a grid/flex item. */
.rbs .wp-block-group__inner-container { display: contents; }
.entry-content > .rbs { margin: 0; }
.rbs .rbs-section, .rbs .rbs-band, .rbs .rbs-inner,
.rbs .rbs-product, .rbs .rbs-person, .rbs .rbs-news-item,
.rbs .rbs-news-card, .rbs .rbs-news-text, .rbs .rbs-info-card,
.rbs .rbs-about-side { margin-block: 0; }
.rbs .rbs-section-heading { margin-block: 0 18px; }
.rbs .wp-block-group__inner-container > * { margin-block-start: 0; }

.rbs h1, .rbs h2, .rbs h3, .rbs p { font-family: inherit; }
.rbs h1 { font-size: clamp(28px, 2.5vw, 34px); line-height: 1.55; color: var(--rbs-ink); font-weight: 700; margin: 10px 0 16px; letter-spacing: -.4px; }
.rbs h2 { font-size: 24px; line-height: 1.65; color: var(--rbs-ink); margin: 4px 0 14px; }
.rbs h3 { font-size: 17px; line-height: 1.7; color: var(--rbs-ink); margin: 10px 0 8px; }
.rbs p { margin: 0 0 12px; color: var(--rbs-muted); }
.rbs a { color: var(--rbs-ink); text-underline-offset: 4px; }
.rbs .wp-block-columns { margin: 0; gap: 28px; }
.rbs .wp-block-column { min-width: 0; }
.rbs-section { padding: 36px 28px; }
.rbs-inner { max-width: 1160px; margin-inline: auto; }
.rbs-kicker { font-size: 12px; color: var(--rbs-ink) !important; letter-spacing: .1px; display: flex; gap: 8px; align-items: center; margin-bottom: 8px !important; }
.rbs-kicker::before { content: ''; width: 22px; height: 2px; background: #6e9d4c; display: inline-block; flex-shrink: 0; }
.rbs-hero { padding-top: 26px; padding-bottom: 26px; }
.rbs-hero .wp-block-columns { align-items: center; gap: 38px; }
.rbs-hero-photo { margin: 0; }
.rbs-hero-photo img { height: 280px !important; width: 100%; object-fit: cover; object-position: left center; border-radius: 4px 28px 4px 4px; }
.rbs-intro { max-width: 520px; font-size: 15px; }
.rbs-hero-topics { font-size: 12px; color: var(--rbs-muted) !important; margin: 12px 0 18px !important; }
.rbs .wp-block-buttons { gap: 10px; align-items: stretch; }
.rbs .wp-block-buttons .wp-block-button > a.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-block-size: 42px; box-sizing: border-box; border: 1px solid transparent; background: var(--rbs-green); color: #fff; border-radius: 3px; padding: 9px 18px; font-family: inherit; font-size: 13px; line-height: 1.7; text-decoration: none; }
.rbs div.wp-block-button.is-style-outline > a.wp-block-button__link { border: 1px solid #9bad9e; color: var(--rbs-ink); background: transparent; }
.rbs .wp-block-buttons .wp-block-button > a.wp-block-button__link:hover { background: #236345; color: white; }
.rbs div.wp-block-button.is-style-outline > a.wp-block-button__link:hover { background: #e8f0e3; color: var(--rbs-ink); }
.rbs-band { background: var(--rbs-green); padding: 13px 28px; }
.rbs-band .wp-block-columns { gap: 16px; align-items: center; }
.rbs-band p { color: #f0f0f0; margin: 0; font-size: 13px; }
.rbs-band .rbs-band-title { color: white; font-size: 14px; font-weight: 600; }
.rbs-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rbs-section-heading h2, .rbs-section-heading p { margin: 0; }
.rbs-section-heading p { flex-shrink: 0; font-size: 12px; }
.rbs-text-link { color: var(--rbs-ink); font-size: inherit; text-decoration: none; font-weight: 500; }
.rbs-text-link:hover { text-decoration: underline; }
.rbs-products { background: #fff; }
.rbs-products .wp-block-columns { gap: 20px; margin-bottom: 18px; }
.rbs-product { border: 1px solid #dfe6dc; background: #fff; height: 100%; padding-bottom: 14px; border-radius: 4px; overflow: hidden; }
.rbs-product figure { margin: 0 0 12px; background: #f9faf6; }
.rbs-product img { width: 100%; height: 145px; object-fit: contain; }
.rbs .rbs-product h3, .rbs .rbs-product p { margin: 0 0 8px; padding-inline: 16px; }
.rbs .rbs-product h3 { font-size: 16px; }
.rbs .rbs-product p { font-size: 13px; line-height: 1.85; }
.rbs .rbs-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block: 18px 24px; }
.rbs-product-identity { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 145px; margin-bottom: 12px; background: #e9eee4; border-bottom: 1px solid #dfe6dc; text-align: center; }
.rbs .rbs-product-identity p { margin: 0; color: var(--rbs-ink); }
.rbs .rbs-product-identity .rbs-product-family { font-size: 13px; }
.rbs .rbs-product-identity .rbs-product-latin { font-size: 20px; font-weight: 700; letter-spacing: 2px; direction: ltr; }
.rbs-product-detail .rbs-product-identity { min-height: 220px; }
.rbs .rbs-milestones { margin-block: 24px; }
.rbs-milestone { padding-inline-start: 16px; border-inline-start: 2px solid #aac895; }
.rbs .rbs-milestone-date { font-size: 18px; font-weight: 700; color: var(--rbs-ink); margin-bottom: 6px; }
.rbs .rbs-milestone p:not(.rbs-milestone-date) { font-size: 13px; }
.rbs-calendar-note { font-size: 12px; }
.rbs-about { background: #edf2e8; }
.rbs-about .wp-block-columns { gap: 36px; }
.rbs-about-side { border-inline-start: 2px solid #aac895; padding-inline-start: 24px; }
.rbs-about-side h3 { margin-top: 0; }
.rbs-about-side p { font-size: 14px; }
.rbs-news-and-team { background: white; }
.rbs-news-and-team > .rbs-inner > .wp-block-columns { gap: 36px; }
.rbs-news-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding-block: 16px; border-bottom: 1px solid #e1e7de; }
.rbs-news-item:first-child { padding-top: 0; }
.rbs-news-item figure { margin: 0; }
.rbs-news-item img { width: 132px; height: 100px; object-fit: cover; border-radius: 3px; }
.rbs-news-item:not(:has(figure)) { grid-template-columns: 1fr; }
.rbs-news-text h3 { font-size: 15px; margin: 4px 0 6px; }
.rbs-news-text p { font-size: 13px; margin-bottom: 5px; }
.rbs-date { font-size: 11px !important; color: #5a655a !important; direction: inherit; }
.rbs-news-card { height: 100%; border: 1px solid #dfe6dc; border-radius: 4px; overflow: hidden; background: white; }
.rbs-news-card > figure { margin: 0; }
.rbs-news-card > figure img { width: 100%; height: 155px; object-fit: cover; }
.rbs-news-card .rbs-news-text { padding: 16px; }
.rbs-news-card h3 { font-size: 16px; }
.rbs-news, .rbs-articles { min-height: 50vh; }
.rbs-articles .wp-block-columns { margin-block: 24px; }
.rbs-news-and-team .rbs-person { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 2px 14px; padding-block: 12px; border-bottom: 1px solid #e1e7de; }
.rbs-news-and-team .rbs-person figure { grid-row: 1 / 3; margin: 0; }
.rbs-news-and-team .rbs-person .rbs-avatar { grid-row: 1 / 3; width: 70px; height: 78px; font-size: 19px !important; }
.rbs-news-and-team .rbs-person h3, .rbs-news-and-team .rbs-person .rbs-role { grid-column: 2; }
.rbs-news-and-team .rbs-person img { width: 70px; height: 78px; object-fit: cover; border-radius: 3px; }
.rbs-news-and-team .rbs-person h3 { margin: 5px 0 0; font-size: 14px; }
.rbs-news-and-team .rbs-person p { margin: 0; font-size: 12px; }
.rbs-role { font-size: 13px; color: var(--rbs-muted) !important; }
.rbs ul { margin: 10px 0 18px; padding-inline-start: 22px; }
.rbs li { padding-block: 2px; }
.rbs-news-and-team ul { font-size: 13px; }
.rbs-knowledge { background: #eef2e9; }
.rbs-info-card { padding: 22px; border: 1px solid #dce5d5; border-radius: 4px; background: #fff; height: 100%; }
.rbs-info-card h3 { margin-top: 0; }
.rbs-info-card p:last-child { margin-bottom: 0; }
.rbs-knowledge p { font-size: 14px; }
.rbs-contact { background: #fff; border-block: 1px solid #e1e7de; }
.rbs-contact .wp-block-columns { align-items: center; }
.rbs-contact .wp-block-buttons { margin-bottom: 12px; }
.rbs-footer { background: var(--rbs-footer-bg); padding-block: 28px; }
.rbs-footer h3 { color: white; font-size: 15px; }
.rbs-footer p, .rbs-footer li { font-size: 12px; color: #dedede; }
.rbs .rbs-footer a { color: #dedede; }
.rbs .rbs-footer a:hover { color: #fff; }
.rbs .rbs-footer ul.wp-block-list { list-style: none; padding: 0; margin: 4px 0 0; text-align: start; }
.rbs-footer .wp-block-columns { gap: 40px; }
.rbs-breadcrumb { font-size: 12px; border-bottom: 1px solid #dfe5dc; padding-bottom: 12px; margin-bottom: 18px !important; }
.rbs-detail { max-width: 1050px; min-height: 50vh; margin: auto; }
.rbs-product-detail .wp-block-columns { align-items: start; margin-block: 24px; }
.rbs-product-detail figure img { width: 100%; max-height: 340px; object-fit: contain; }
.rbs-product-detail h2 { font-size: 20px; }
.rbs table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rbs td { border: 1px solid #dce3d7; padding: 9px 12px; vertical-align: top; overflow-wrap: anywhere; }
.rbs td:first-child { width: 38%; font-weight: 500; background: #edf2e8; }
.rbs .wp-block-table { margin-block: 16px; overflow-x: auto; }
.rbs-source-note { font-size: 12px; line-height: 1.85; color: var(--rbs-muted) !important; padding-inline-start: 12px; border-inline-start: 2px solid #8fab72; margin-block: 14px !important; }
.rbs-about-page .wp-block-columns { margin-bottom: 24px; }
.rbs-about-page figure img { border-radius: 4px; max-height: 280px; width: 100%; object-fit: cover; }
.rbs-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.rbs-team-grid .rbs-person { background: white; border: 1px solid #dfe6dc; border-radius: 4px; padding: 22px; }
.rbs-team-grid .rbs-person figure { margin: 0 0 16px; }
.rbs-team-grid .rbs-person img { width: 96px; height: 110px; object-fit: cover; border-radius: 3px; }
.rbs-team-grid p { font-size: 13px; }
.rbs-avatar { width: 96px; height: 110px; display: grid; place-items: center; font-size: 26px !important; background: #e5eddd; border-radius: 3px; font-weight: 700; }
.rbs-contact-page a[dir='ltr'], .rbs-footer a[dir='ltr'] { display: inline-block; }
.rbs-research .wp-block-columns { margin-block: 24px; }
.rbs-article .rbs-detail { max-width: 900px; }
.rbs-article h1 { font-size: 28px; }
.rbs-article .rbs-detail .wp-block-image { margin-block: 22px; }
.rbs-article .wp-block-image img { width: auto; max-width: 100%; max-height: 450px; object-fit: contain; }
.rbs-article .rbs-article-cover img { width: 100%; max-height: 330px; object-fit: contain; background: #edf2e8; }
.rbs a:focus-visible { outline: 3px solid #89ae51; outline-offset: 4px; }
@media (max-width: 1024px) {
  .rbs .rbs-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rbs-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
  .rbs .rbs-product-grid { grid-template-columns: 1fr; }
  .rbs { font-size: 14px; line-height: 1.9; }
  .rbs-section { padding: 28px 20px; }
  .rbs h1 { font-size: 28px; }
  .rbs h2 { font-size: 22px; }
  .rbs h3 { font-size: 16px; }
  .rbs .wp-block-columns { gap: 22px; }
  .rbs-hero .wp-block-columns { gap: 22px; }
  .rbs-hero-photo img { height: 210px !important; border-radius: 4px 22px 4px 4px; }
  .rbs-intro { font-size: 14px; }
  .rbs-hero-topics { font-size: 11px; }
  .rbs-band { padding: 15px 20px; }
  .rbs-band .wp-block-columns { gap: 6px; }
  .rbs-band p { font-size: 12px; }
  .rbs .wp-block-buttons .wp-block-button > a.wp-block-button__link { padding-inline: 15px; }
  .rbs-section-heading { align-items: start; gap: 10px; }
  .rbs-section-heading h2 { font-size: 21px; }
  .rbs-section-heading p { font-size: 11px; }
  .rbs-product img { height: 160px; }
  .rbs-about-side { padding-inline-start: 16px; }
  .rbs-news-item { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; }
  .rbs-news-item img { width: 94px; height: 85px; }
  .rbs-news-text h3 { font-size: 14px; }
  .rbs-news-text p { font-size: 12px; }
  .rbs-info-card { padding: 18px; }
  .rbs-team-grid { grid-template-columns: 1fr; }
  .rbs-product-detail figure img { max-height: 220px; }
  .rbs-article h1 { font-size: 24px; }
  .rbs-contact td:nth-child(2), .rbs-contact-page td:nth-child(2) { direction: ltr; text-align: start; }
}

/* Physical positions follow the supplied organization sketch in both languages. */
.rbs .rbs-org-chart { display: grid; direction: ltr; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: ". chair ." "ceo . vice" ". technical ." "empty-left empty-middle medrep"; gap: 24px 28px; max-width: 940px; margin: 28px auto; align-items: stretch; }
.rbs-org-chart .rbs-person { direction: rtl; text-align: center; padding: 18px 12px; min-width: 0; }
html[lang^='en'] .rbs-org-chart .rbs-person { direction: ltr; }
.rbs .rbs-org-chart .rbs-person figure { margin: 0 auto 12px; }
.rbs .rbs-org-chart .rbs-person img { display: block; margin-inline: auto; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.rbs .rbs-org-chart h3 { font-size: 15px; margin: 8px 0; }
.rbs .rbs-org-chart .rbs-role { font-size: 12px; margin: 0; }
.rbs-org-chair { grid-area: chair; }
.rbs-org-vice { grid-area: vice; }
.rbs-org-ceo { grid-area: ceo; }
.rbs-org-technical { grid-area: technical; }
.rbs-org-medrep { grid-area: medrep; }
.rbs-org-empty-left { grid-area: empty-left; }
.rbs-org-empty-middle { grid-area: empty-middle; }
.rbs .rbs-org-chart .rbs-org-empty { border-style: dashed; background: transparent; display: grid; align-content: start; }
.rbs-news-and-team .rbs-person-icon img { object-fit: contain; }
@media (max-width: 781px) {
  .rbs .rbs-org-chart { gap: 16px 8px; margin-block: 22px; }
  .rbs .rbs-org-chart .rbs-person { padding: 12px 5px; }
  .rbs .rbs-org-chart .rbs-person img { width: 54px; height: 54px; }
  .rbs .rbs-org-chart h3 { font-size: 12px; line-height: 1.8; }
  .rbs .rbs-org-chart .rbs-role { font-size: 11px; }
}
