/* Republican Idaho design system (ri-data-plugin). Loaded after Bridge and the Qode custom CSS.
 * Editorial newspaper layout: solid masthead, white page, navy ink, Playfair headlines, Inter text,
 * thin rules, red used sparingly. Never light text on a light ground: white text only on navy.
 * Spacing scale: 8 / 16 / 24 / 32 / 48 / 64. Content width 1180. */

:root {
  --ri-navy: #0B1F3A;
  --ri-blue: #002868;
  --ri-red: #B31B34;
  --ri-gold: #C9A23E;          /* fills and rules only, never text on white */
  --ri-ink: #111827;
  --ri-text: #1F2937;
  --ri-muted: #4B5563;         /* 7.5:1 on white */
  --ri-rule: #D6DBE3;
  --ri-paper: #FFFFFF;
  --ri-band: #F3F5F8;          /* light band: dark text only */
  --ri-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ri-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ri-w: 1180px;
}

/* ── Masthead: solid, compact, content starts below it ────────────────── */
body.ri-site .header_bottom { background: #fff !important; border-bottom: 3px solid var(--ri-navy); }
body.ri-site header.page_header, body.ri-site .page_header { background: #fff !important; }
/* Bridge stacks five logo images (normal/light/dark/sticky/mobile) absolutely inside a link it
   sizes with an inline height; pin the link and the images to the masthead height. */
body.ri-site .q_logo { top: auto !important; }
body.ri-site .q_logo a { height: 76px !important; }
body.ri-site .q_logo img { max-height: 76px !important; height: 76px !important; width: auto !important; top: 0 !important; transform: none !important; }
body.ri-site .logo_wrapper { height: 96px !important; display: flex; align-items: center; }
body.ri-site nav.main_menu > ul > li > a { font-family: var(--ri-font) !important; font-size: 14px !important; letter-spacing: .02em !important; color: var(--ri-navy) !important; font-weight: 700 !important; line-height: 96px !important; height: 96px !important; padding: 0 14px !important; }
body.ri-site nav.main_menu > ul > li.active > a, body.ri-site nav.main_menu > ul > li > a:hover { color: var(--ri-red) !important; box-shadow: inset 0 -3px 0 var(--ri-red); }
body.ri-site .content { margin-top: 0 !important; padding-top: 0 !important; }
/* Title area: gone where the page prints its own H1; elsewhere (posts, news index) a plain
   editorial header, never a stock photo with text over it. */
body.ri-site.ri-own-h1 .title_outer { display: none !important; }
body.ri-site .title_outer { height: auto !important; }
body.ri-site .title_outer .title { background: #fff !important; background-image: none !important; height: auto !important; padding: 48px 0 24px !important; border-bottom: 1px solid var(--ri-rule); }
body.ri-site .title_outer .title::before { display: none !important; }
body.ri-site .title_outer .title .image, body.ri-site .title_outer .title img { display: none !important; }
body.ri-site .title_outer .title .title_holder, body.ri-site .title_outer .title .container { position: static !important; height: auto !important; }
body.ri-site .title_outer .title .title_holder .container_inner, body.ri-site .title_outer .title_subtitle_holder, body.ri-site .title_outer .title .title_holder { padding: 0 !important; height: auto !important; display: block !important; }
body.ri-site .title_outer, body.ri-site .title_outer .title { min-height: 0 !important; }
body.ri-site .title_outer .title .separator { background: var(--ri-red) !important; border-color: var(--ri-red) !important; }
body.ri-site.single-post .post_image img, body.ri-site.single-post .post_image { max-height: 460px; width: 100%; object-fit: cover; }
body.ri-site .title_outer .title h1, body.ri-site .title_outer .title h1 span { color: var(--ri-ink) !important; font-family: var(--ri-serif) !important; font-size: clamp(32px, 2.4vw + 20px, 50px) !important; line-height: 1.15 !important; text-transform: none !important; letter-spacing: 0 !important; text-shadow: none !important; text-align: left !important; }
body.ri-site .title_outer .breadcrumb, body.ri-site .title_outer .breadcrumbs { display: none !important; }
body.ri-site .side_menu_button_wrapper { display: none !important; }
body.ri-site .ri-ticker, body.ri-site [class*="ri-ticker"] { display: none !important; }

/* ── Page ground and type ───────────────────────────────────────────────── */
body.ri-site, body.ri-site .content, body.ri-site .content .container, body.ri-site .content_inner { background: var(--ri-paper) !important; }
body.ri-site, body.ri-site p, body.ri-site li, body.ri-site td, body.ri-site th, body.ri-site input, body.ri-site button,
body.ri-site select, body.ri-site textarea, body.ri-site [style*="IBM Plex Mono"], body.ri-site [style*="monospace"] { font-family: var(--ri-font) !important; }
body.ri-site .content p, body.ri-site .content li, body.ri-site .content td { font-size: 17px; line-height: 1.7; color: var(--ri-text); }
body.ri-site .content h1, body.ri-site .content h2 { font-family: var(--ri-serif) !important; color: var(--ri-ink) !important; letter-spacing: 0 !important; text-transform: none !important; overflow-wrap: anywhere; line-height: 1.15 !important; font-weight: 700 !important; }
body.ri-site .content h3, body.ri-site .content h4 { font-family: var(--ri-font) !important; color: var(--ri-ink) !important; letter-spacing: 0 !important; text-transform: none !important; line-height: 1.3 !important; font-weight: 700 !important; }
body.ri-site .content h1 { font-size: clamp(34px, 2.6vw + 20px, 56px) !important; margin: 0 0 16px !important; }
body.ri-site .content h2 { font-size: clamp(26px, 1.2vw + 18px, 34px) !important; margin: 0 0 16px !important; }
body.ri-site .content h3 { font-size: 20px !important; margin: 0 0 8px !important; }
body.ri-site .content a { color: var(--ri-blue); text-underline-offset: 3px; }
body.ri-site .content a:hover { color: var(--ri-red); }
body.ri-site .ri-section-label { display: none !important; }

/* ── Layout primitives ──────────────────────────────────────────────────── */
.ri-app { width: 100%; }
.ri-wrap { max-width: var(--ri-w); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.ri-sec { padding: 48px 0; border-top: 1px solid var(--ri-rule); }
.ri-sec.ri-first { border-top: 0; }
.ri-band { background: var(--ri-band); }
.ri-dark { background: var(--ri-navy); border-top: 0; }
.ri-dark, .ri-dark p, .ri-dark li, .ri-dark h2, .ri-dark h3, .ri-dark a, .ri-dark span { color: #fff !important; }
.ri-dark .ri-muted, .ri-dark .ri-meta { color: #C9D3E3 !important; }
.ri-grid { display: grid; gap: 32px; }
.ri-g-2 { grid-template-columns: 1fr 1fr; }
.ri-g-3 { grid-template-columns: repeat(3, 1fr); }
.ri-g-4 { grid-template-columns: repeat(4, 1fr); }
.ri-g-lead { grid-template-columns: 2fr 1fr; }
.ri-g-side { grid-template-columns: 1fr 2fr; }
.ri-rule-red { width: 48px; height: 3px; background: var(--ri-red); margin: 0 0 16px; border: 0; }
.ri-muted { color: var(--ri-muted) !important; }
body.ri-site .ri-dek { font-size: 20px !important; line-height: 1.55 !important; color: var(--ri-muted) !important; margin: 0 0 24px !important; max-width: 760px; }
body.ri-site .ri-meta { font-size: 14px !important; color: var(--ri-muted) !important; margin: 0 !important; }
.ri-btn { display: inline-block; background: var(--ri-red); color: #fff !important; font-weight: 700; font-size: 16px; padding: 12px 22px; border-radius: 4px; text-decoration: none !important; min-height: 44px; box-sizing: border-box; margin: 0 8px 8px 0; }
.ri-btn:hover { background: #8E1428; color: #fff !important; }
.ri-btn-ghost { background: transparent; color: var(--ri-blue) !important; border: 2px solid var(--ri-blue); }
.ri-btn-ghost:hover { background: var(--ri-blue); color: #fff !important; }
.ri-dark .ri-btn-ghost { border-color: #fff; }
.ri-figure { margin: 0 0 16px; }
.ri-figure img { width: 100%; height: auto; display: block; border-radius: 2px; aspect-ratio: 16/9; object-fit: cover; }
.ri-figure figcaption { font-size: 13px; color: var(--ri-muted); margin-top: 6px; }

.ri-ebox { padding: 32px; border-radius: 2px; }
.ri-ebox .ri-list > li { border-bottom-color: rgba(255,255,255,.25); padding: 10px 0 !important; font-weight: 600; }

/* ── Page header used by every templated page ───────────────────────────── */
.ri-phead { padding: 48px 0 32px; border-bottom: 1px solid var(--ri-rule); }
body.ri-site .ri-crumbs { font-size: 14px !important; color: var(--ri-muted) !important; margin: 0 0 12px !important; }
body.ri-site .ri-crumbs a { color: var(--ri-muted) !important; }

/* ── Lists with rules (no card boxes) ───────────────────────────────────── */
.ri-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ri-list > li { padding: 16px 0 !important; border-bottom: 1px solid var(--ri-rule); margin: 0 !important; list-style: none !important; }
.ri-list > li:first-child { padding-top: 0 !important; }
.ri-list > li::before { display: none !important; }
body.ri-site .ri-list h3 { margin: 4px 0 6px !important; font-size: 19px !important; }
.ri-list h3 a { color: var(--ri-ink) !important; text-decoration: none; }
.ri-list h3 a:hover { color: var(--ri-red) !important; text-decoration: underline; }
.ri-label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ri-red); }

/* ── People: legislator headshots ───────────────────────────────────────── */
.ri-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; }
.ri-person { text-decoration: none !important; color: var(--ri-ink) !important; display: block; }
.ri-person img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; display: block; background: var(--ri-band); border-radius: 2px; }
.ri-person .ri-pname { display: block; font-weight: 700; font-size: 16px; margin-top: 8px; color: var(--ri-ink); }
.ri-person .ri-pseat { display: block; font-size: 14px; color: var(--ri-muted); }
.ri-person .ri-pstat { display: block; font-size: 14px; color: var(--ri-red); font-weight: 700; margin-top: 2px; }
.ri-person:hover .ri-pname { color: var(--ri-red); text-decoration: underline; }

/* ── Numbers ────────────────────────────────────────────────────────────── */
.ri-p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 3px solid var(--ri-navy); border-bottom: 1px solid var(--ri-rule); margin: 0 0 24px; }
.ri-p-stat { padding: 20px 16px 20px 0; }
.ri-p-stat b { display: block; font-family: var(--ri-serif); font-size: 40px; color: var(--ri-ink); line-height: 1.1; }
.ri-p-stat span { font-size: 15px; color: var(--ri-muted); font-weight: 600; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.ri-table-wrap, .ri-bill-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.ri-site .ri-bill-table { width: 100%; border-collapse: collapse; background: #fff; }
body.ri-site .ri-bill-table th { font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ri-muted) !important; text-align: left !important; background: #fff !important; border-bottom: 2px solid var(--ri-navy); padding: 10px 12px; }
body.ri-site .ri-bill-table td { padding: 12px; border-bottom: 1px solid var(--ri-rule); text-align: left !important; vertical-align: top; color: var(--ri-text); background: #fff !important; }
body.ri-site .ri-bill-table td a { font-weight: 600; }

/* ── Profile ([ri_profile]) ─────────────────────────────────────────────── */
.ri-profile { padding: 48px 0; }
.ri-profile .ri-p-sub { font-size: 18px; color: var(--ri-muted); margin: 0 0 24px; }
.ri-profile .ri-p-photo { width: 160px; aspect-ratio: 4/5; object-fit: cover; object-position: top; float: right; margin: 0 0 16px 24px; border-radius: 2px; }
.ri-profile .ri-p-facts { border-collapse: collapse; width: 100%; margin: 0 0 24px; }
.ri-profile .ri-p-facts th { text-align: left; width: 34%; color: var(--ri-muted); font-weight: 600; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--ri-rule); background: #fff; }
.ri-profile .ri-p-facts td { padding: 12px 0; border-bottom: 1px solid var(--ri-rule); text-align: left !important; background: #fff; }
.ri-profile h2 { margin-top: 40px !important; }
body.ri-site .ri-p-source { font-size: 15px !important; color: var(--ri-muted) !important; }
.ri-tag { display: inline-block; font-size: 13px !important; font-weight: 700; padding: 2px 8px; border-radius: 2px; letter-spacing: 0 !important; vertical-align: middle; }
.ri-tag-blue { background: #E6ECF6; color: var(--ri-blue) !important; }
.ri-tag-red { background: #F8E7EA; color: #8E1428 !important; }
.ri-tag-gold { background: #F6EED8; color: #6B4E06 !important; }

/* ── Forms: finder + newsletter ─────────────────────────────────────────── */
.ri-district-finder form, .ri-nl { display: flex; gap: 8px; flex-wrap: wrap; }
body.ri-site .ri-district-finder input[type=text], body.ri-site .ri-nl input[type=email] { flex: 1 1 280px; min-height: 48px; font-size: 17px !important; padding: 10px 14px; border: 2px solid var(--ri-navy); border-radius: 4px; background: #fff; color: var(--ri-ink); box-sizing: border-box; margin: 0; }
body.ri-site .ri-district-finder button, body.ri-site .ri-nl button { min-height: 48px; padding: 10px 22px; border: 0; border-radius: 4px; background: var(--ri-red); color: #fff !important; font-weight: 700; font-size: 16px !important; cursor: pointer; letter-spacing: 0 !important; text-transform: none !important; }
.ri-district-results { margin-top: 24px; }
.ri-district-results .ri-legislator-card { padding: 12px 0; border-bottom: 1px solid var(--ri-rule); }
.ri-dark .ri-nl input[type=email] { border-color: #fff; }
.ri-nl-msg { margin-top: 12px; font-weight: 600; }
.ri-newsletter-form { padding: 0; background: none; text-align: left; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.ri-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.ri-faq details { border-bottom: 1px solid var(--ri-rule); padding: 16px 0; }
.ri-faq summary { font-weight: 700; font-size: 18px; cursor: pointer; color: var(--ri-ink); }
body.ri-site .ri-faq details p { margin: 12px 0 0 !important; }

/* ── Theme blog lists and single posts ──────────────────────────────────── */
body.ri-site .post_info, body.ri-site .post_info a, body.ri-site .post_info span { color: var(--ri-muted) !important; font-size: 15px !important; }
body.ri-site .post_info a { display: inline-block; padding: 10px 2px; }

/* ── Phones ─────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .ri-g-2, .ri-g-3, .ri-g-4, .ri-g-lead, .ri-g-side { grid-template-columns: 1fr; }
  .ri-grid { gap: 24px; }
  .ri-sec { padding: 32px 0; }
  .ri-phead { padding: 32px 0 24px; }
  body.ri-site .logo_wrapper { height: 72px !important; }
  body.ri-site .q_logo img { max-height: 56px !important; height: 56px !important; }
  .ri-people { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .ri-wrap { padding: 0 16px; }
  body.ri-site .ri-dek { font-size: 18px !important; }
  .ri-profile .ri-p-photo { float: none; display: block; width: 140px; margin: 0 0 16px; }
  .ri-p-stat b { font-size: 32px; }
}

/* ── 1.2.1 ─────────────────────────────────────────────────────────────── */
body.ri-site .content .ri-dark h2, body.ri-site .content .ri-dark h3, body.ri-site .content .ri-dark p, body.ri-site .content .ri-dark li { color: #fff !important; }
body.ri-site .content .ri-dark .ri-meta, body.ri-site .content .ri-dark .ri-muted { color: #C9D3E3 !important; }
body.ri-site .ri-district-finder { border: 0 !important; padding: 0 !important; background: none !important; text-align: left !important; box-shadow: none !important; max-width: none !important; }
.ri-figure img { max-height: 520px; }
body.ri-site .ri-list h3 { font-size: 18px !important; }
body.ri-site .content .ri-profile h2 { margin-top: 40px !important; }
body.ri-site .ri-tag { font-family: var(--ri-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
.ri-vbar { display: flex; height: 14px; border-radius: 2px; overflow: hidden; background: var(--ri-band); margin: 8px 0 6px; }
.ri-vbar span { display: block; height: 100%; }
.ri-vbar-y, .ri-k-y { background: #1F6F43; } .ri-vbar-n, .ri-k-n { background: var(--ri-red); } .ri-vbar-a, .ri-k-a { background: #9AA4B2; }
body.ri-site .ri-vbar-key { font-size: 14px !important; color: var(--ri-muted) !important; margin: 0 0 8px !important; }
.ri-k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 6px 0 12px; vertical-align: middle; }
.ri-k:first-child { margin-left: 0; }
body.ri-site .ri-rank { font-weight: 600; font-size: 16px !important; margin: 0 0 8px !important; }
.ri-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--ri-navy); }
.ri-tools a { display: block; padding: 20px 20px 20px 0; text-decoration: none !important; border-bottom: 1px solid var(--ri-rule); }
.ri-tools a b { display: block; font-size: 19px; color: var(--ri-ink); margin-bottom: 6px; }
.ri-tools a span { display: block; font-size: 15px; color: var(--ri-muted); line-height: 1.5; }
.ri-tools a:hover b { color: var(--ri-red); text-decoration: underline; }
.ri-contact label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ri-ink); }
body.ri-site .ri-contact input[type=text], body.ri-site .ri-contact input[type=email], body.ri-site .ri-contact select, body.ri-site .ri-contact textarea { width: 100%; max-width: 640px; min-height: 48px; font-size: 17px !important; padding: 10px 14px; border: 2px solid var(--ri-navy); border-radius: 4px; box-sizing: border-box; background: #fff; color: var(--ri-ink); }
body.ri-site .ri-contact button { min-height: 48px; padding: 10px 28px; border: 0; border-radius: 4px; background: var(--ri-red); color: #fff !important; font-weight: 700; font-size: 16px !important; cursor: pointer; }
@media (max-width: 1000px) { .ri-tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ri-tools { grid-template-columns: 1fr; } }

/* ── 1.2.2 ─────────────────────────────────────────────────────────────── */
body.ri-site .ri-bill-table-wrap { max-height: none !important; height: auto !important; border: 0 !important; overflow-y: visible !important; }
body.ri-site.single-post .blog_holder h2.entry_title { display: none !important; }   /* repeats the H1 */
body.ri-site.single-post .post_text_inner, body.ri-site.single-post .post_text { max-width: 760px; }
body.ri-site.single-post .post_text p { font-size: 18px; line-height: 1.75; }
@media (max-width: 1000px) {
  body.ri-site .q_logo a { height: 56px !important; }
  body.ri-site .q_logo img { height: 56px !important; max-height: 56px !important; }
  .ri-p-stats { grid-template-columns: repeat(2, 1fr); }
  .ri-p-stat { padding: 14px 12px 14px 0; }
  .ri-profile { padding: 24px 0; }
}

/* ── 1.3.0: bill tracker, tallies, chamber makeup, news, articles ─────────── */
.ri-filter { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin: 0 0 12px; }
.ri-filter label { display: block; margin: 0; }
.ri-filter label > span { display: block; font-size: 14px; font-weight: 700; color: var(--ri-ink); margin-bottom: 6px; }
body.ri-site .ri-filter input, body.ri-site .ri-filter select { width: 100%; height: 48px; box-sizing: border-box; border: 2px solid var(--ri-navy) !important; border-radius: 4px; padding: 0 12px; font-size: 16px; color: var(--ri-ink); background: #fff; }
body.ri-site .ri-filter input:focus, body.ri-site .ri-filter select:focus { outline: 3px solid var(--ri-gold); outline-offset: 1px; }
.ri-nw { white-space: nowrap; }
body.ri-site .ri-tracker td:first-child { width: 72px; }
body.ri-site .ri-tracker td:nth-child(3) { width: 150px; }
body.ri-site .ri-tracker td:nth-child(4) { width: 240px; font-size: 15px; }
body.ri-site .ri-tracker td .ri-label { font-size: 12px; letter-spacing: .02em; }
body.ri-site .ri-tracker td small { color: var(--ri-muted); font-size: 13px; }
.ri-tracker tr.ri-hide { display: none; }
body.ri-site .ri-row-highlight td { background: #FFF8E6 !important; }
.ri-stage { display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.3; padding: 3px 8px; border-radius: 3px; white-space: nowrap; border: 1px solid transparent; }
.ri-stage-law { background: var(--ri-navy); color: #fff; }
.ri-stage-passed { background: #fff; color: var(--ri-navy); border-color: var(--ri-navy); }
.ri-stage-committee, .ri-stage-other { background: var(--ri-band); color: var(--ri-ink); border-color: var(--ri-rule); }
.ri-stage-failed { background: #fff; color: var(--ri-red); border-color: var(--ri-red); }
.ri-tally { display: inline-flex; align-items: center; gap: 8px; }
.ri-tally-bar { display: inline-block; width: 64px; height: 8px; background: var(--ri-rule); border-radius: 4px; overflow: hidden; }
.ri-tally-bar i { display: block; height: 100%; background: var(--ri-navy); }
.ri-comp { display: grid; gap: 24px; }
body.ri-site .ri-comp-h { margin: 0 0 8px !important; font-size: 16px !important; color: var(--ri-muted) !important; }
body.ri-site .ri-comp-h b { color: var(--ri-ink); font-size: 19px; margin-right: 8px; }
.ri-comp-bar { display: flex; height: 18px; background: var(--ri-rule); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.ri-comp-bar i { display: block; height: 100%; }
.ri-comp-bar i.r { background: var(--ri-red); }
.ri-comp-bar i.d { background: var(--ri-blue); }

/* News index */
.ri-lead-story { padding: 0 0 28px; margin: 0 0 8px; border-bottom: 3px solid var(--ri-navy); }
body.ri-site .content .ri-lead-h { font-size: clamp(28px, 1.6vw + 18px, 40px) !important; margin: 6px 0 12px !important; }
.ri-lead-h a, .ri-stories h3 a { color: var(--ri-ink) !important; text-decoration: none; }
.ri-lead-h a:hover { color: var(--ri-red) !important; text-decoration: underline; }
body.ri-site .ri-story-dek { font-size: 17px !important; color: var(--ri-text) !important; margin: 0 0 8px !important; max-width: 720px; }
.ri-lead-story .ri-story-dek { font-size: 19px !important; }
.ri-stories > li:first-child { padding-top: 16px !important; }
.ri-pager { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 0; }
.ri-pager a { font-weight: 700; }
body.ri-site .content h2.ri-side-h { font-size: 22px !important; margin: 0 0 8px !important; }
.ri-side-list { margin-bottom: 32px !important; border-top: 3px solid var(--ri-navy); }
.ri-side-list > li { padding: 12px 0 !important; }
.ri-side-list > li:first-child { padding-top: 12px !important; }
.ri-side-list a { font-weight: 700; color: var(--ri-ink) !important; text-decoration: none; }
.ri-side-list a:hover { color: var(--ri-red) !important; text-decoration: underline; }
.ri-src h3 { font-size: 18px !important; }
.ri-src p { margin: 0 !important; }

/* Article page and theme archives: no comment counts, likes or clock times */
body.ri-site.single-post .post_info, body.ri-site .blog_holder .post_info,
body.ri-site.single-post .comment_holder, body.ri-site.single-post #respond, body.ri-site.single-post .comment_pager,
body.ri-site .blog_holder .qode-like, body.ri-site .blog_holder .post_comments { display: none !important; }
body.ri-site .ri-dateline { font-size: 15px !important; color: var(--ri-muted) !important; margin: 0 0 24px !important; padding: 0 0 12px; border-bottom: 1px solid var(--ri-rule); }
body.ri-site .ri-dateline a { font-weight: 700; color: var(--ri-red) !important; text-decoration: none; }
.ri-related { margin: 56px 0 0; padding: 24px 0 0; border-top: 3px solid var(--ri-navy); }
body.ri-site .content .ri-related h2 { font-size: 26px !important; margin: 0 0 12px !important; }
body.ri-site .blog_holder article h2 .date, body.ri-site .blog_holder article h5 .date { color: var(--ri-muted) !important; }
body.ri-site .blog_holder .qbutton, body.ri-site .blog_holder .read_more { background: var(--ri-navy) !important; color: #fff !important; border-color: var(--ri-navy) !important; font-family: var(--ri-font) !important; letter-spacing: 0 !important; }
body.ri-site .blog_holder article { margin-bottom: 40px !important; padding-bottom: 32px; border-bottom: 1px solid var(--ri-rule); }

@media (max-width: 1000px) {
  .ri-filter { grid-template-columns: 1fr 1fr; }
  .ri-filter .ri-f-q { grid-column: 1 / -1; }
  body.ri-site .ri-tracker thead { display: none; }
  body.ri-site .ri-tracker, body.ri-site .ri-tracker tbody { display: block; }
  body.ri-site .ri-tracker tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--ri-rule); }
  body.ri-site .ri-tracker tr.ri-hide { display: none; }
  body.ri-site .ri-tracker td { display: block; border: 0 !important; padding: 0 !important; width: auto !important; }
  body.ri-site .ri-tracker td:nth-child(2) { grid-column: 2; }
  body.ri-site .ri-tracker td:nth-child(3) { grid-column: 2; }
  body.ri-site .ri-tracker td:nth-child(4) { grid-column: 2; }
}

/* ── 1.3.1 ─────────────────────────────────────────────────────────────── */
body.ri-site .ri-app .ri-sec p + h2, body.ri-site .ri-app .ri-sec ul + h2, body.ri-site .ri-app .ri-sec table + h2, body.ri-site .ri-app .ri-sec div + h2 { margin-top: 48px !important; }
body.ri-site .ri-app .ri-g-lead > div > h2 { font-size: clamp(26px, 1vw + 18px, 32px) !important; margin-bottom: 12px !important; }
body.ri-site.single-post .single_tags, body.ri-site.single-post .single_tags * { font-family: var(--ri-font) !important; letter-spacing: 0 !important; text-transform: none !important; font-size: 15px !important; }
body.ri-site.single-post .single_tags h5, body.ri-site.single-post .single_tags .tags_text { color: var(--ri-muted) !important; font-weight: 700 !important; }
