/* RIMPRO India – blog post design (desktop + mobile). Applies to new posts only (body.rp-new-post).
   Values follow the "Blog post template – desktop" and "Blog post – mobile first screen" designs.
   Brand colours: change them here only. */
:root {
  --rp-primary: #6B2A8F;
  --rp-link: #6B2A8F;
  --rp-accent: #DF8B2F;
  --rp-accent-ink: #1B1206;
  --rp-ink: #241B2B;
  --rp-muted: #625A6B;
  --rp-line: #E0D8E6;
  --rp-soft: #F1EAF6;
  --rp-note: #FDF3E7;
  --rp-radius: 10px;
}

/* ---------- Page ---------- */
body.rp-new-post { background: #F7F5F9; }
.rp-single { font-family: 'Source Sans 3', sans-serif; color: var(--rp-ink); background: #F7F5F9; }
.rp-single *, .rp-single *::before, .rp-single *::after { box-sizing: border-box; }
.rp-single a { text-decoration: none; }
.rp-single .rp-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Title band ---------- */
.rp-hero { background: var(--rp-primary); color: #fff; }
.rp-hero__inner { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rp-crumbs { font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; color: #D9C4E6; }
.rp-crumbs a { color: #D9C4E6; }
.rp-crumbs__now { color: #fff; }
.rp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-chip { background: var(--rp-accent); color: var(--rp-accent-ink); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.rp-chip--ghost { background: transparent; border: 1px solid #9B6DB8; color: #EADFF2; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 4px 12px; }
.rp-single .rp-hero h1 { font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; margin: 0;color: #fff; }
.rp-hero__excerpt { font-size: 19px; line-height: 1.55; color: #E9DDF1; margin: 0;  }
.rp-hero__meta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 15px; color: #D9C4E6; padding-top: 4px; }
.rp-hero__meta strong { color: #fff; }
.rp-hero__author { display: flex; align-items: center; gap: 10px; }
.rp-hero__avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--rp-primary); font-family: Archivo, sans-serif; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ---------- Featured image ---------- */
.rp-featured { padding-top: 0; }
.rp-featured img { display: block; width: 100%; height: 340px; object-fit: cover; border-radius: 0 0 10px 10px; margin-top: -4px; background: #DDD3E5; }

/* ---------- Columns ---------- */
.rp-cols { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 64px; }
.rp-article { flex: 999 1 560px; min-width: 0; font-size: 18px; line-height: 1.7; color: var(--rp-ink); }
.rp-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.rp-mtoc { display: none; }

/* ---------- Article text ---------- */
.rp-article > * { margin: 0; }
.rp-article > * + * { margin-top: 16px; }
.rp-article > :is(.wp-block-group, .wp-block-table, .wp-block-details, .wp-block-embed, .wp-block-image, figure, .rp-note) { margin-top: 28px; }
.rp-article > :is(.wp-block-group, .wp-block-table, .wp-block-details, .wp-block-embed, .wp-block-image, figure, .rp-note) + * { margin-top: 28px; }
.rp-article h2 { font-family: Archivo, sans-serif; font-weight: 700; font-size: 30px; line-height: 1.25; color: var(--rp-primary); margin: 28px 0 0; scroll-margin-top: 110px; }
.rp-article h3 { font-family: Archivo, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--rp-ink); margin: 24px 0 0; scroll-margin-top: 110px; }
.rp-article h2 + *, .rp-article h3 + * { margin-top: 12px; }
.rp-article a:not(.wp-block-button__link) { color: var(--rp-link); font-weight: 700; }
.rp-article :is(ul, ol) { padding-left: 24px; margin-left: 0; }
.rp-article ul { list-style: disc outside; }
.rp-article ol { list-style: decimal outside; }
.rp-article li { display: list-item; list-style: inherit; text-align: left; margin-left: 0; }
.rp-article li ul { list-style: circle outside; }
.rp-article li + li { margin-top: 8px; }
.rp-article li::marker { color: var(--rp-link); font-weight: 700; }
.rp-article img { max-width: 100%; height: auto; border-radius: var(--rp-radius); }

/* ---------- Key takeaways ---------- */
.rp-takeaways { background: #fff; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); padding: 24px 28px; }
.rp-takeaways .rp-takeaways__title { margin: 0 0 12px; font-family: Archivo, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rp-primary); }
.rp-takeaways ul { margin: 0; padding-left: 22px; font-size: 17px; }
.rp-takeaways li + li { margin-top: 6px; }

/* ---------- Tables ---------- */
.wp-block-table.rp-table { overflow-x: auto; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); background: #fff; margin-left: 0; margin-right: 0; }
.wp-block-table.rp-table table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.wp-block-table.rp-table :is(th, td) { border: 0; border-top: 1px solid #ECE6F0; padding: 14px 16px; text-align: left; vertical-align: top; }
.wp-block-table.rp-table thead th { background: var(--rp-soft); color: var(--rp-primary); border-top: 0; font-weight: 700; }
.wp-block-table.rp-table tbody td:first-child { font-weight: 600; }
.wp-block-table.rp-table tbody tr:nth-child(even) { background: #FAFBFC; }

/* ---------- Call-to-action panel ---------- */
.rp-cta { background: var(--rp-primary); color: #fff; border-radius: 12px; padding: 28px; }
.rp-cta > .wp-block-group__inner-container, .rp-cta:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 6px; align-items: center; }
.rp-cta .rp-cta__title { grid-column: 1; margin: 0; font-family: Archivo, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.3; color: #fff; }
.rp-cta .rp-cta__text { grid-column: 1; margin: 0; font-size: 16px; line-height: 1.55; color: #DCCBE8; }
.rp-cta .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; margin: 0; flex-wrap: wrap; }
@media (max-width: 899px) {
  .rp-cta > .wp-block-group__inner-container, .rp-cta:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; row-gap: 8px; }
  .rp-cta .wp-block-buttons { grid-column: 1; grid-row: auto; margin-top: 10px; }
}
/* Button colours inside the purple panel (specific enough to beat the general article buttons below) */
.rp-article .rp-cta .wp-block-button__link { background: var(--rp-accent); color: var(--rp-accent-ink); border: 1.5px solid var(--rp-accent); }
.rp-article .rp-cta .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid #B993D1; font-weight: 600; }
.rp-article .rp-cta .wp-block-button__link:hover { filter: brightness(1.08); }

/* ---------- Buttons ---------- */
.rp-article .wp-block-buttons { gap: 12px; }
.rp-article .wp-block-button__link { background: var(--rp-link); color: #fff; border: 1.5px solid var(--rp-link); font-weight: 700; font-size: 16px; border-radius: 6px; padding: 12px 22px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.rp-article .is-style-outline .wp-block-button__link { background: transparent; color: var(--rp-link); border: 1.5px solid var(--rp-link); }
.rp-article .wp-block-button__link:hover { filter: brightness(1.08); }

/* ---------- Note box (add a Group block with class "rp-note") ---------- */
.rp-note { background: var(--rp-note); border: 1px solid #F0CFA4; border-radius: var(--rp-radius); padding: 18px 22px 18px 58px; position: relative; font-size: 16px; line-height: 1.6; }
.rp-note::before { content: ""; position: absolute; left: 22px; top: 21px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23A65E12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L4 19a2 2 0 0 0 1.7 3h12.6a2 2 0 0 0 1.7-3L14 9V3'/%3E%3C/svg%3E") no-repeat; }
.rp-note > * { margin: 0; }

/* ---------- Related product card ---------- */
.rp-product { background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; padding: 24px; }
.rp-product, .rp-product > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 10px; }
.rp-product > *, .rp-product > .wp-block-group__inner-container > * { margin: 0 !important; }
.rp-product .rp-product__label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #A65E12; }
.rp-product .rp-product__name { font-family: Archivo, sans-serif; font-size: 22px; font-weight: 700; }
.rp-product .rp-product__name a { color: var(--rp-primary) !important; text-decoration: none; }
.rp-product .rp-product__text { font-size: 16px; line-height: 1.55; }
.rp-product .wp-block-buttons { padding-top: 4px; align-items: center; }
.rp-product .wp-block-button__link { font-size: 15px; padding: 11px 18px; }
.rp-product .is-style-outline .wp-block-button__link { border: 0; background: transparent; color: var(--rp-link) !important; padding: 11px 4px; }

/* ---------- FAQ ---------- */
.rp-faq { background: #fff; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); padding: 0; }
.rp-faq + .rp-faq { margin-top: 12px !important; }
.rp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: Archivo, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--rp-ink); padding: 18px 22px; min-height: 44px; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary::after { content: "+"; color: var(--rp-primary); font-size: 22px; line-height: 1; flex: none; }
.rp-faq[open] summary::after { content: "\2212"; }
.rp-faq p { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.65; color: #3E3647; }

/* ---------- Video / images ---------- */
.rp-article .wp-block-embed { margin-left: 0; margin-right: 0; }
.rp-article .wp-block-embed-youtube { border-radius: var(--rp-radius); overflow: hidden; }
.rp-article .rp-image-todo { display: none; }
.editor-styles-wrapper .rp-image-todo { background: var(--rp-note); border: 1px dashed #F0CFA4; padding: 10px 14px; font-size: 15px; }

/* ---------- About RIMPRO ---------- */
.rp-about { margin-top: 28px; background: var(--rp-soft); border-radius: 12px; padding: 28px; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.rp-about__logo { width: 64px; height: 64px; border-radius: 12px; background: var(--rp-primary); color: #fff; font-family: Archivo, sans-serif; font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center; flex: none; }
.rp-about__body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.rp-about h2 { font-family: Archivo, sans-serif; font-weight: 700; font-size: 22px; color: var(--rp-primary); margin: 0 !important; }
.rp-about p { margin: 0; font-size: 16px; line-height: 1.65; }

/* ---------- Sidebar ---------- */
.rp-card { background: #fff; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); padding: 20px 22px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.rp-card__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rp-muted); }
.rp-toc-nav a { font-size: 15px; padding: 8px 0 8px 12px; border-left: 3px solid #ECE6F0; color: #3E3647; display: block; line-height: 1.4; }
.rp-toc-nav a:hover { color: var(--rp-primary); }
.rp-toc-nav a.is-current { border-left-color: var(--rp-accent); color: var(--rp-primary); font-weight: 600; }
.rp-card--talk { gap: 0; }
.rp-card--talk a { font-weight: 700; color: var(--rp-link); min-height: 44px; display: flex; align-items: center; }
.rp-card--talk a.rp-plain { font-weight: 400; }
.rp-card--range a { padding: 6px 0; color: var(--rp-link); }

.rp-form { background: var(--rp-primary); color: #fff; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.rp-form__title { margin: 0; font-family: Archivo, sans-serif; font-weight: 700; font-size: 20px; }
.rp-form__sub { margin: 0; font-size: 14px; color: #DCCBE8; }
.rp-form label { font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.rp-form input[type=text] { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 6px; border: none; min-height: 44px; color: var(--rp-ink); background: #fff; width: 100%; }
.rp-form button { background: var(--rp-accent); color: var(--rp-accent-ink); font: inherit; font-weight: 700; font-size: 16px; border: none; border-radius: 6px; min-height: 46px; cursor: pointer; }
.rp-form button:hover { filter: brightness(1.06); }
.rp-hp { position: absolute !important; left: -9999px !important; }
.rp-form__msg { margin: 0; font-size: 15px; background: rgba(255, 255, 255, 0.14); border-radius: 6px; padding: 10px 12px; }
.rp-form__msg--err { background: #FDECEC; color: #8A1C1C; }

/* ---------- Orange band ---------- */
.rp-band { background: var(--rp-accent); }
.rp-band__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.rp-band__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; color: var(--rp-accent-ink); }
.rp-band__title { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 28px; }
.rp-band__sub { margin: 0; font-size: 17px; }
.rp-band a { background: var(--rp-primary); color: #fff; font-weight: 700; font-size: 17px; padding: 15px 26px; border-radius: 6px; min-height: 48px; display: inline-flex; align-items: center; }

/* ---------- Related guides ---------- */
.rp-related { padding: 56px 0; }
.rp-related .rp-wrap { display: flex; flex-direction: column; gap: 24px; }
.rp-related h2 { font-family: Archivo, sans-serif; font-weight: 700; font-size: 28px; color: var(--rp-primary); margin: 0; }
.rp-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.rp-related__card { background: #fff; border: 1px solid var(--rp-line); border-radius: 10px; overflow: hidden; color: var(--rp-ink); display: flex; flex-direction: column; }
.rp-related__card:hover { box-shadow: 0 6px 18px rgba(36, 27, 43, 0.1); }
.rp-related__img { display: block; height: 150px; background: #DDD3E5; }
.rp-related__img img { width: 100%; height: 150px; object-fit: cover; display: block; }
.rp-related__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.rp-related__cat { font-size: 13px; font-weight: 700; color: #A65E12; text-transform: uppercase; letter-spacing: 0.05em; }
.rp-related__title { font-family: Archivo, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.35; }

/* ---------- Mobile sticky contact bar ---------- */
.rp-mobile-bar { display: none; }

/* ---------- Tablet and mobile ---------- */
@media (max-width: 1024px) {
  .rp-cols { flex-direction: column; flex-wrap: nowrap; gap: 28px; align-items: stretch; }
  .rp-article { flex: none; }
  .rp-side { position: static; flex: none; }
  .rp-side .rp-toc-card { display: none; }
  .rp-mtoc { display: block; background: #fff; border: 1px solid var(--rp-line); border-radius: 10px; }
  .rp-mtoc summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 15px; color: var(--rp-primary); display: flex; justify-content: space-between; min-height: 48px; align-items: center; }
  .rp-mtoc summary::-webkit-details-marker { display: none; }
  .rp-mtoc summary::after { content: "\25BE"; }
  .rp-mtoc[open] summary::after { content: "\25B4"; }
  .rp-mtoc .rp-toc-nav { padding: 0 16px 12px; }
}
@media (max-width: 767px) {
  .rp-single .rp-wrap { padding-left: 16px; padding-right: 16px; }
  .rp-hero__inner { padding-top: 20px; padding-bottom: 24px; gap: 12px; }
  .rp-crumbs { font-size: 13px; gap: 6px; }
  .rp-crumbs__home { display: none; }
  .rp-chip { font-size: 12px; padding: 4px 10px; }
  .rp-chip--ghost { display: none; }
  .rp-single .rp-hero h1 { font-size: 26px; line-height: 1.18; }
  .rp-hero__excerpt, .rp-hero__review, .rp-hero__avatar { display: none; }
  .rp-hero__meta { font-size: 14px; gap: 6px; padding-top: 0; }
  .rp-hero__meta > span + span::before { content: "·"; margin-right: 6px; }
  .rp-hero__author + span::before { content: "·"; margin-right: 6px; }
  .rp-featured { padding-top: 16px; }
  .rp-featured img { height: 180px; border-radius: 10px; margin-top: 0; }
  .rp-cols { padding-top: 14px; padding-bottom: 28px; gap: 20px; }
  .rp-article { font-size: 17px; }
  .rp-article h2 { font-size: 24px; }
  .rp-article h3 { font-size: 20px; }
  .rp-takeaways { padding: 16px; }
  .rp-takeaways .rp-takeaways__title { font-size: 12px; margin-bottom: 8px; }
  .rp-takeaways ul { font-size: 15px; line-height: 1.55; padding-left: 18px; }
  .rp-cta { padding: 22px 18px; }
  .rp-band__title { font-size: 24px; }
  .rp-related { padding: 36px 0 90px; }
  .rp-mobile-bar {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: #fff; border-top: 1px solid var(--rp-line);
    padding: 10px 12px calc(18px + env(safe-area-inset-bottom));
  }
  .rp-mobile-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--rp-primary); border-radius: 8px; font-weight: 700; font-size: 15px; color: var(--rp-ink); text-decoration: none; }
  .rp-mobile-bar a.rp-mobile-bar__primary { background: var(--rp-accent); border-color: var(--rp-accent); color: var(--rp-accent-ink); }
}
html { scroll-behavior: smooth; }

/* Logo shown when a post has no featured image */
.rp-placeholder { object-fit: contain !important; padding: 24px; background: #F1EAF6; }

/* WordPress adds an inner wrapper to Group blocks; keep its children's spacing under our control */
.rp-article .wp-block-group > .wp-block-group__inner-container > * { margin-block-start: 0; }
.rp-article .rp-takeaways > .wp-block-group__inner-container > * + * { margin-top: 12px; }

/* ---------- Link colours: stronger selectors so the site's Elementor global link colour never wins ---------- */
.rp-single a, .rp-single a:visited { color: var(--rp-link); }
.rp-single .rp-crumbs a, .rp-single .rp-crumbs a:visited { color: #D9C4E6; }
.rp-single .rp-crumbs a:hover { color: #fff; }
.rp-single .rp-article a:not(.wp-block-button__link) { color: var(--rp-link); }
.rp-single .rp-card--talk a, .rp-single .rp-card--range a { color: var(--rp-link); }
.rp-single .rp-card--talk a:hover, .rp-single .rp-card--range a:hover { color: #4E1E69; text-decoration: underline; }
.rp-single .rp-toc-nav a, .rp-single .rp-toc-nav a:visited { color: #3E3647; }
.rp-single .rp-toc-nav a.is-current, .rp-single .rp-toc-nav a:hover { color: var(--rp-primary); }
.rp-single .rp-mtoc .rp-toc-nav a { color: #3E3647; }
.rp-single .rp-band a, .rp-single .rp-band a:visited, .rp-single .rp-band a:hover { color: #fff; }
.rp-single .rp-related__card, .rp-single .rp-related__card:visited { color: var(--rp-ink); }
.rp-single .rp-product__name a { color: var(--rp-primary); }
body.rp-new-post .rp-mobile-bar a { color: var(--rp-ink); }
body.rp-new-post .rp-mobile-bar a.rp-mobile-bar__primary { color: var(--rp-accent-ink); }
