/* Paramond: R&D section pages (category r-and-d / rd-publications) */
.rd { --rd-teal: #008080; --rd-teal-dark: #006666; --rd-navy: #006666; --rd-orange: #00a2a2; --rd-text: #3b4652; --rd-muted: #7b8794; --rd-line: #e4e9ef; color: var(--rd-text); }
.rd *, .rd *:before, .rd *:after { box-sizing: border-box; }
.rd p { line-height: 2.1; text-align: justify; margin: 0 0 14px; }
.rd a { text-decoration: none; }

/* ---------- landing hero (full width) ---------- */
.rd-hero { position: relative; margin: 0 calc(50% - 50vw) 34px; min-height: 400px; padding-top: 75px; background: linear-gradient(to left bottom, #00a2a2, #008080, #006666); overflow: hidden; display: flex; align-items: center; }
.rd-hero-img { position: absolute; inset: 75px auto 0 0; width: 72%; background: url(/files/rd/hero.jpg) left center / cover no-repeat; -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%); mask-image: linear-gradient(to right, #000 45%, transparent 100%); }
.rd-hero-img:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,128,128,.45), rgba(0,128,128,0) 25%), rgba(0,102,102,.15); }
.rd-hero-body { position: relative; z-index: 1; width: 100%; max-width: 1283px; margin: 0 auto; padding: 26px 30px 40px; color: #fff; }
.rd-hero-crumb { font-size: 13px; opacity: .85; margin-bottom: 18px; }
.rd-hero-crumb a { color: #fff; }
.rd-hero h1 { color: #fff; font-size: 42px; font-weight: 800; margin: 0 0 6px; }
.rd-hero h2 { color: #fff; font-size: 26px; font-weight: 400; margin: 0; }
.rd-hero-line { width: 330px; max-width: 70%; height: 3px; background: rgba(255,255,255,.75); border-radius: 3px; margin: 20px 0 14px; }
.rd-hero-sub { font-size: 15px; opacity: .92; margin: 0; }

/* ---------- cards ---------- */
.rd-cards { display: grid; gap: 22px; margin: 0 auto 34px; }
.rd-cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.rd-cards-3 { grid-template-columns: repeat(3, 1fr); }
.rd-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rd-line); border-radius: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.06); overflow: hidden; transition: transform .2s, box-shadow .2s; color: var(--rd-text); }
.rd-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); color: var(--rd-text); }
.rd-card-img { height: 118px; background: #006666 center / cover no-repeat; }
.rd-card-icon { position: absolute; top: 88px; right: 22px; width: 58px; height: 58px; border-radius: 50%; background: var(--rd-teal); border: 4px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.rd-card-body { padding: 32px 22px 20px 64px; text-align: center; position: relative; flex: 1; }
.rd-card-title { font-size: 18px; font-weight: 800; color: var(--rd-navy); margin: 0 0 8px; }
.rd-card-text { font-size: 13.5px; color: var(--rd-muted); line-height: 1.9; margin: 0; }
.rd-card-arrow { position: absolute; left: 20px; bottom: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--rd-teal-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: background .2s; }
.rd-card:hover .rd-card-arrow { background: var(--rd-orange); }

/* ---------- call to action ---------- */
.rd-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding: 18px 28px; margin: 0 0 40px; border-radius: 14px; overflow: hidden; background: linear-gradient(to left, #006666 0%, #008080 50%, #00a2a2 100%); color: #fff; }
.rd-cta-img { position: absolute; inset: 0 auto 0 0; width: 34%; background: center / cover no-repeat; -webkit-mask-image: linear-gradient(to left, transparent, #000 45%); mask-image: linear-gradient(to left, transparent, #000 45%); }
.rd-cta-space { width: 200px; flex: 0 1 200px; }
.rd-cta-text { position: relative; z-index: 1; font-size: 17px; font-weight: 700; margin: 0; color: #fff; }
.rd-cta-light { background: linear-gradient(to left, #eef7f7 0%, #dceeee 60%, #c7e4e4 100%); color: var(--rd-navy); }
.rd-cta-light .rd-cta-text { color: var(--rd-teal-dark); }
.rd-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 11px 24px; border-radius: 30px; font-size: 14px; font-weight: 700; color: #fff !important; background: var(--rd-orange); border: 2px solid var(--rd-orange); white-space: nowrap; transition: background .2s, color .2s; }
.rd-btn:hover { background: #006666; border-color: #006666; }
.rd-btn-outline { background: transparent; border-color: #fff; }
.rd-btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.rd-btn-teal { background: var(--rd-teal); border-color: var(--rd-teal); }
.rd-btn-teal:hover { background: var(--rd-teal-dark); border-color: var(--rd-teal-dark); }

/* ---------- content pages ---------- */
.rd-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--rd-navy); margin: 0 0 18px; }
.rd-title:before { content: ""; width: 6px; height: 26px; border-radius: 4px; background: var(--rd-teal); }
.rd-subtitle { font-size: 18px; font-weight: 800; color: var(--rd-navy); margin: 30px 0 16px; }
.rd-lead { background: linear-gradient(135deg, #f2f8f8, #fff); border: 1px solid var(--rd-line); border-right: 4px solid var(--rd-teal); border-radius: 12px; padding: 20px 22px 8px; margin-bottom: 22px; }
.rd-intro { margin-bottom: 26px; }
.rd-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.rd-pillar { display: flex; gap: 14px; background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 16px; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.rd-pillar-wide { grid-column: 1 / -1; }
.rd-pillar-icon { flex: 0 0 46px; height: 46px; border-radius: 12px; background: #e7f3f2; color: var(--rd-teal); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.rd-pillar h4 { font-size: 15.5px; font-weight: 800; color: var(--rd-navy); margin: 3px 0 6px; }
.rd-pillar h4 small { color: var(--rd-teal); font-weight: 800; font-size: 14px; margin-left: 4px; }
.rd-pillar p { font-size: 13.5px; line-height: 2; margin: 0; }
.rd-callout { display: flex; gap: 14px; align-items: flex-start; background: var(--rd-teal); color: #fff; border-radius: 12px; padding: 20px 22px; margin: 6px 0 26px; }
.rd-callout .fas, .rd-callout .fal { font-size: 24px; color: #fff; margin-top: 6px; }
.rd-callout p { margin: 0; color: #fff; font-weight: 700; }
.rd-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0 30px; }
.rd-back { display: inline-flex; align-items: center; gap: 8px; color: var(--rd-teal) !important; font-weight: 700; font-size: 14px; }

/* table */
.rd-table-wrap { border: 1px solid var(--rd-line); border-radius: 12px; overflow: auto; margin-bottom: 24px; background: #fff; }
.rd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rd-table th { background: var(--rd-teal); color: #fff; font-weight: 700; padding: 12px 14px; text-align: right; white-space: nowrap; position: sticky; top: 0; }
.rd-table td { padding: 11px 14px; border-top: 1px solid var(--rd-line); line-height: 1.9; vertical-align: top; }
.rd-table tbody tr:nth-child(even) td { background: #f8fbfb; }
.rd-table tbody tr:hover td { background: #eef7f7; }
.rd-table .rd-col-num { width: 56px; text-align: center; color: var(--rd-teal); font-weight: 800; }
.rd-table .rd-col-year { width: 70px; text-align: center; font-weight: 700; color: var(--rd-navy); }
.rd-table .rd-col-place { width: 32%; color: var(--rd-muted); font-size: 13px; }
.rd-table td[dir=ltr] { text-align: left; }

/* stats + filters */
.rd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.rd-stat { background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 16px; text-align: center; }
.rd-stat strong { display: block; font-size: 28px; color: var(--rd-teal); font-weight: 800; line-height: 1.4; }
.rd-stat span { font-size: 13px; color: var(--rd-muted); }
.rd-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.rd-filter input { flex: 1 1 240px; height: 42px; border: 1px solid var(--rd-line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 14px; }
.rd-filter input:focus { outline: none; border-color: var(--rd-teal); box-shadow: 0 0 0 3px rgba(0,128,128,.12); }
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-chip { border: 1px solid var(--rd-line); background: #fff; border-radius: 20px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--rd-text); }
.rd-chip.is-active { background: var(--rd-teal); border-color: var(--rd-teal); color: #fff; }
.rd-empty { display: none; text-align: center; color: var(--rd-muted); padding: 20px; }

/* books */
.rd-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 6px 0 26px; }
.rd-book { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 14px; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.rd-book-cover { flex: 0 0 48px; height: 64px; border-radius: 4px 8px 8px 4px; background: linear-gradient(to left bottom, #00a2a2, #008080, #006666); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: inset 4px 0 0 rgba(255,255,255,.25); }
.rd-book h4 { font-size: 14.5px; font-weight: 700; color: var(--rd-navy); margin: 0; line-height: 1.9; }

/* kavehyar paths */
.rd-paths { border-radius: 14px; overflow: hidden; border: 1px solid var(--rd-line); margin: 6px 0 26px; background: #fff; }
.rd-paths-head { background: linear-gradient(to left bottom, #00a2a2, #008080, #006666); color: #fff; text-align: center; padding: 18px; }
.rd-paths-head h3 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.rd-paths-head p { color: #fff; opacity: .9; margin: 0; text-align: center; font-size: 13.5px; }
.rd-paths-body { display: grid; grid-template-columns: repeat(2, 1fr); }
.rd-path { padding: 22px; text-align: center; color: var(--rd-text); transition: background .2s; }
.rd-path + .rd-path { border-right: 1px solid var(--rd-line); }
.rd-path:hover { background: #f3f8f8; color: var(--rd-text); }
.rd-path .fal, .rd-path .fas { font-size: 28px; color: var(--rd-teal); margin-bottom: 8px; }
.rd-path h4 { font-size: 17px; font-weight: 800; color: var(--rd-navy); margin: 0 0 6px; }
.rd-path p { text-align: center; font-size: 13px; color: var(--rd-muted); margin: 0 0 10px; line-height: 1.9; }
.rd-badge { display: inline-block; border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 700; }
.rd-badge-in { background: #e6f2f2; color: #006666; }
.rd-badge-out { background: #f1f1f1; color: #555; }

/* responsive */
@media (max-width: 991px) {
    .rd-cards-3 { grid-template-columns: repeat(2, 1fr); }
    .rd-hero-img { width: 100%; opacity: .45; }
    .rd-hero h1 { font-size: 34px; }
}
@media (max-width: 767px) {
    .rd-cards-2, .rd-cards-3, .rd-pillars, .rd-paths-body { grid-template-columns: 1fr; }
    .rd-stats { grid-template-columns: 1fr 1fr; }
    .rd-hero { min-height: 340px; }
    .rd-hero-body { padding: 20px 18px 30px; }
    .rd-hero h1 { font-size: 28px; }
    .rd-hero h2 { font-size: 19px; }
    .rd-cta { flex-direction: column-reverse; text-align: center; }
    .rd-cta-space { display: none; }
    .rd-cta-img { width: 100%; opacity: .35; }
    .rd-path + .rd-path { border-right: 0; border-top: 1px solid var(--rd-line); }
    .rd-table .rd-col-place { width: auto; }
}
.rd .rd-card-text, .rd .rd-cta-text, .rd .rd-hero-sub { text-align: center; line-height: 1.9; margin: 0; }
.rd .rd-hero-sub { text-align: right; }
.rd .rd-callout p { text-align: justify; line-height: 2; }
.rd-table thead th { color: #fff !important; font-size: 13.5px; }

/* inside the site's page frame (.tab-content card): site title bars stay full width, the rest gets padding */
.tab-pane > .rd { padding: 0 24px 24px; }
.page-content-tab .tab-content .tab-pane > .rd > h3.title { margin-right: -24px; margin-left: -24px; }
.page-content-tab .tab-content .tab-pane > .rd > h3.title:not(:first-of-type) { margin-top: 26px; }
@media (max-width: 767px) {
    .tab-pane > .rd { padding: 0 14px 18px; }
    .page-content-tab .tab-content .tab-pane > .rd > h3.title { margin-right: -14px; margin-left: -14px; }
}

/* landing: the site keeps #wrapper at least one viewport high; let the landing fill it instead of leaving empty white above the footer */
body:has(.rd-landing) #wrapper { display: flex; flex-direction: column; }
body:has(.rd-landing) #wrapper > .main { flex: 1 0 auto; display: flex; flex-direction: column; }
body:has(.rd-landing) #wrapper > .main > .container { flex: 1 0 auto; display: flex; flex-direction: column; }
.rd-landing { flex: 1 0 auto; display: flex; flex-direction: column; }
.rd-landing .rd-cards { width: 100%; margin-top: auto; margin-bottom: auto; padding: 10px 0 34px; }
/* soft brand tint behind cards and CTA, full width, so a tall screen shows a designed area instead of blank white */
.rd-landing { background: #f3f8f8; box-shadow: 0 0 0 100vmax #f3f8f8; clip-path: inset(0 -100vmax); }
.rd-landing .rd-hero { min-height: clamp(400px, 40vh, 600px); }
.rd-landing .rd-cta { margin-top: 0; }
@media (min-width: 1600px) {
    .rd-landing .rd-cards-2 { max-width: 1000px; gap: 28px; }
    .rd-landing .rd-card-img { height: 150px; }
    .rd-landing .rd-card-icon { top: 120px; }
}
