/*
 * Ruwaaq Group: section styles (milestone 08).
 *
 * Layout for the block styles chosen in Gutenberg's Styles panel (class `is-style-rg-*` on the section's Group/Cover block).
 * Registry and documentation: inc/section-styles.php, docs/design/SECTION_STYLES.md.
 *
 * Loaded on the front end AND inside the editor canvas (add_editor_style), so it is self-contained: it only needs the design tokens
 * (--rg-*), which both contexts define. Each style fully defines the section's layout, so it can replace whichever fixed variant the
 * page was built with. Logical properties only (RTL-safe). Breakpoints follow the theme: 1023px and 767px.
 * Specificity is raised on purpose (attribute + role class) so a chosen style wins over the build-time variant classes in home.css
 * and division.css without !important, except where those files already use !important.
 */

/* ============================================================================================================================
   1. HERO  (division hero = Group .rg-dhero, home hero = Cover .rg-home-hero)
   ============================================================================================================================ */
:is(.rg-dhero, .rg-home-hero)[class*="is-style-rg-hero-"] :is(.rg-dhero__inner, .rg-hero__inner) { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
:is(.rg-dhero, .rg-home-hero)[class*="is-style-rg-hero-"] :is(.rg-dhero__inner, .rg-hero__inner) > * { margin-block: 0; min-inline-size: 0; }
:is(.rg-dhero, .rg-home-hero)[class*="is-style-rg-hero-"] :is(.rg-dhero__title, .rg-hero__title) { overflow-wrap: break-word; }

/* Split: text on one side, artwork/panel on the other (mirrors automatically in RTL). */
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-split :is(.rg-dhero__inner, .rg-hero__inner) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); text-align: start; justify-items: stretch; min-block-size: 0; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-split :is(.rg-dhero__lead, .rg-hero__lead) { margin-inline: 0; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-split :is(.rg-hero__actions, .wp-block-buttons) { justify-content: flex-start; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-split .rg-dhero__art { order: 0; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-split .rg-dhero__art img { max-inline-size: 640px; margin-inline: auto; }

/* Centered: one centred column, artwork/panel underneath. */
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-centered :is(.rg-dhero__inner, .rg-hero__inner) { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; gap: clamp(28px, 4vw, 48px); min-block-size: 0; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-centered :is(.rg-dhero__title, .rg-hero__title) { margin-inline: auto; max-inline-size: 20ch; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-centered :is(.rg-dhero__lead, .rg-hero__lead) { margin-inline: auto; max-inline-size: 52ch; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-centered :is(.rg-hero__actions, .wp-block-buttons) { justify-content: center; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-centered :is(.rg-dhero__art, .rg-hero__panel) { inline-size: 100%; max-inline-size: 720px; margin-inline: auto; order: 0; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-centered .rg-hero__panel { text-align: start; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-centered .rg-dhero__art img { margin-inline: auto; max-inline-size: 720px; }

/* Full Width: the content area spans the whole viewport; the artwork bleeds to the inline-end edge. */
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-full { --rg-hero-pad: clamp(20px, 6vw, 112px); }
/* `.rg-container` is repeated: main.css caps full-width page containers with a (0,4,0) rule. */
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-full :is(.rg-dhero__inner, .rg-hero__inner).rg-container { max-width: none; max-inline-size: none; inline-size: 100%; margin-inline: 0; padding-inline: var(--rg-hero-pad); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); text-align: start; justify-items: stretch; min-block-size: clamp(380px, 56vh, 620px); }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-full :is(.rg-dhero__title, .rg-hero__title) { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem) !important; max-inline-size: none; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-full :is(.rg-dhero__lead, .rg-hero__lead) { margin-inline: 0; max-inline-size: 56ch; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-full :is(.rg-hero__actions, .wp-block-buttons) { justify-content: flex-start; }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-full .rg-dhero__art { order: 0; margin-inline-end: calc(-1 * var(--rg-hero-pad)); }
:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-full .rg-dhero__art img { max-inline-size: none; inline-size: 100%; margin-inline: 0; }

@media (max-width: 899px) {
	:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-split :is(.rg-dhero__inner, .rg-hero__inner),
	:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-full :is(.rg-dhero__inner, .rg-hero__inner).rg-container { grid-template-columns: minmax(0, 1fr); min-block-size: 0; }
	:is(.rg-dhero, .rg-home-hero).is-style-rg-hero-full .rg-dhero__art { margin-inline-end: 0; }
}

/* ============================================================================================================================
   2. CAPABILITIES  (Group .rg-div-caps > .rg-cap > .rg-cap__item > -num, -title, -text)
   ============================================================================================================================ */
.rg-div-caps[class*="is-style-rg-caps-"] { background: #fff; color: var(--rg-slate); }
.rg-div-caps[class*="is-style-rg-caps-"] :is(h2, h3) { color: var(--rg-navy); overflow-wrap: break-word; }
.rg-div-caps[class*="is-style-rg-caps-"] .rg-eyebrow { color: var(--rg-link); }
.rg-div-caps[class*="is-style-rg-caps-"] .rg-section__head p:not(.rg-eyebrow) { color: var(--rg-muted); }
.rg-div-caps[class*="is-style-rg-caps-"] .rg-cap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.rg-div-caps[class*="is-style-rg-caps-"] .rg-cap > .rg-cap__item { grid-column: auto; grid-row: auto; display: block; position: relative; margin: 0; padding: 0; min-inline-size: 0; background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; color: inherit; }
.rg-div-caps[class*="is-style-rg-caps-"] .rg-cap > .rg-cap__item .rg-cap__item-num { display: block; grid-row: auto; margin: 0 0 14px; font: 800 0.8125rem/1 var(--rg-font-heading); letter-spacing: 0.12em; color: var(--rg-accent-ink, var(--rg-link-strong)); }
.rg-div-caps[class*="is-style-rg-caps-"] .rg-cap > .rg-cap__item .rg-cap__item-title { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; color: var(--rg-navy); }
.rg-div-caps[class*="is-style-rg-caps-"] .rg-cap > .rg-cap__item .rg-cap__item-text { margin: 0; color: var(--rg-muted); font-size: 1rem; line-height: 1.6; max-inline-size: none; }
:lang(ar) .rg-div-caps[class*="is-style-rg-caps-"] .rg-cap__item-num { letter-spacing: 0; }

/* Cards */
.rg-div-caps.is-style-rg-caps-cards { background: var(--rg-offwhite); }
.rg-div-caps.is-style-rg-caps-cards .rg-cap > .rg-cap__item { padding: 28px; background: #fff; border: 1px solid var(--rg-border); border-block-start: 4px solid var(--rg-accent, var(--rg-primary)); border-radius: var(--rg-r-lg); box-shadow: var(--rg-shadow-sm); }

/* Icons (milestone 09): the editable Ruwaaq icon block inside an item shows as an icon tile in Icon Grid and Cards, and is hidden by the other
   layouts. Where an item has an icon, its number is not repeated. Items without an icon block (content built before milestone 09) show a
   neutral glyph tile instead of a number, until an editor picks an icon. Same tile size in every language; the icon is centred in its tile. */
.rg-div-caps .rg-cap__item > .ruwaaq-icon { display: none; }
.rg-div-caps:is(.is-style-rg-caps-icons, .is-style-rg-caps-cards) .rg-cap__item > .ruwaaq-icon { display: flex; align-items: center; justify-content: center; flex: none; inline-size: 56px; block-size: 56px; margin: 0 0 18px; border-radius: 16px; background: color-mix(in srgb, var(--rg-accent, var(--rg-primary)) 12%, #fff); color: var(--rg-accent-ink, var(--rg-link-strong)); line-height: 0; }
.rg-div-caps:is(.is-style-rg-caps-icons, .is-style-rg-caps-cards) .rg-cap__item > .ruwaaq-icon svg { inline-size: 28px; block-size: 28px; display: block; flex: none; }
.rg-div-caps:is(.is-style-rg-caps-icons, .is-style-rg-caps-cards) .rg-cap__item:has(> .ruwaaq-icon) > .rg-cap__item-num { display: none; }
.rg-div-caps.is-style-rg-caps-icons .rg-cap > .rg-cap__item > .ruwaaq-icon { margin-inline: auto; }
.rg-div-caps:is(.is-style-rg-caps-icons, .is-style-rg-caps-cards) .rg-cap__item:not(:has(> .ruwaaq-icon)) > .rg-cap__item-num { display: flex; align-items: center; justify-content: center; inline-size: 56px; block-size: 56px; margin: 0 0 18px; border-radius: 16px; background: color-mix(in srgb, var(--rg-accent, var(--rg-primary)) 12%, #fff); font-size: 0; line-height: 0; }
.rg-div-caps:is(.is-style-rg-caps-icons, .is-style-rg-caps-cards) .rg-cap__item:not(:has(> .ruwaaq-icon)) > .rg-cap__item-num::before { content: ""; inline-size: 28px; block-size: 28px; background: var(--rg-accent-ink, var(--rg-link-strong)); -webkit-mask: var(--rg-glyph) center / contain no-repeat; mask: var(--rg-glyph) center / contain no-repeat; }
.rg-div-caps.is-style-rg-caps-icons .rg-cap > .rg-cap__item:not(:has(> .ruwaaq-icon)) > .rg-cap__item-num { margin-inline: auto; }
:root { --rg-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5 9-5zM3 13l9 5 9-5'/%3E%3C/svg%3E"); }

/* Icon Grid layout */
.rg-div-caps.is-style-rg-caps-icons .rg-cap { gap: 44px 32px; }
.rg-div-caps.is-style-rg-caps-icons .rg-cap > .rg-cap__item { padding: 8px 4px; text-align: center; }
.rg-div-caps.is-style-rg-caps-icons .rg-cap > .rg-cap__item .rg-cap__item-text { margin-inline: auto; max-inline-size: 38ch; }

/* Alternating Layout: full-width rows; heading and text swap sides on every second row (follows the page direction). */
.rg-div-caps.is-style-rg-caps-alternating .rg-cap { grid-template-columns: minmax(0, 1fr); gap: 0; border-block-start: 1px solid var(--rg-border); }
.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(24px, 5vw, 72px); row-gap: 0; align-items: start; align-content: start; padding: 32px clamp(16px, 3vw, 40px); border-block-end: 1px solid var(--rg-border); }
.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item:nth-child(even) { background: var(--rg-offwhite); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item > .rg-cap__item-num,
.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item > .rg-cap__item-title { grid-column: 1; }
.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item > .rg-cap__item-text { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item:nth-child(even) > .rg-cap__item-num,
.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item:nth-child(even) > .rg-cap__item-title { grid-column: 2; }
.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item:nth-child(even) > .rg-cap__item-text { grid-column: 1; }

@media (max-width: 1023px) {
	.rg-div-caps.is-style-rg-caps-cards .rg-cap,
	.rg-div-caps.is-style-rg-caps-icons .rg-cap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.rg-div-caps.is-style-rg-caps-cards .rg-cap,
	.rg-div-caps.is-style-rg-caps-icons .rg-cap { grid-template-columns: minmax(0, 1fr); }
	.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item,
	.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item:nth-child(even) { display: block; padding-inline: 4px; }
	.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item:nth-child(even) { padding-inline: 16px; }
	.rg-div-caps.is-style-rg-caps-alternating .rg-cap > .rg-cap__item > .rg-cap__item-text { margin-block-start: 8px; }
}

/* ============================================================================================================================
   3. WHY RUWAAQ  (Group .rg-home-why / .rg-div-why > .rg-why > .rg-why__item > number, title, text)
      TONE and LAYOUT are independent (milestone 09). A tone only sets the --rg-why-* variables (and the section background); it never
      touches the structure. Layouts (columns / split / trust / cards, see division.css) consume the variables, so any layout works in
      any tone. Build-time dark sections (class rg-home-why / rg-section--dark) get the dark variables; a Styles-panel tone overrides them.
   ============================================================================================================================ */
.rg-div-why { --rg-why-ink: var(--rg-navy); --rg-why-muted: var(--rg-muted); --rg-why-line: var(--rg-border); --rg-why-accent: var(--rg-accent-ink, var(--rg-link-strong)); --rg-why-card-bg: #fff; --rg-why-card-line: var(--rg-border); }
.rg-home-why { --rg-why-ink: #fff; --rg-why-muted: var(--rg-muted-dark); --rg-why-line: rgb(255 255 255 / 0.14); --rg-why-accent: var(--rg-accent-text); --rg-why-card-bg: rgb(255 255 255 / 0.06); --rg-why-card-line: rgb(255 255 255 / 0.16); }
:is(.rg-home-why, .rg-div-why).is-style-rg-why-light { --rg-why-ink: var(--rg-navy); --rg-why-muted: var(--rg-muted); --rg-why-line: var(--rg-border); --rg-why-accent: var(--rg-link-strong); --rg-why-card-bg: #fff; --rg-why-card-line: var(--rg-border); --rg-why-bg: #fff; }
:is(.rg-home-why, .rg-div-why).is-style-rg-why-navy { --rg-why-ink: #fff; --rg-why-muted: var(--rg-muted-dark); --rg-why-line: rgb(255 255 255 / 0.16); --rg-why-accent: var(--rg-accent-text); --rg-why-card-bg: rgb(255 255 255 / 0.06); --rg-why-card-line: rgb(255 255 255 / 0.16); --rg-why-bg: var(--rg-navy); }
:is(.rg-home-why, .rg-div-why).is-style-rg-why-gradient { --rg-why-ink: #fff; --rg-why-muted: rgb(255 255 255 / 0.92); --rg-why-line: rgb(255 255 255 / 0.3); --rg-why-accent: #fff; --rg-why-card-bg: rgb(255 255 255 / 0.1); --rg-why-card-line: rgb(255 255 255 / 0.28); --rg-why-bg: color-mix(in srgb, var(--rg-primary) 62%, #000); background-image: linear-gradient(135deg, color-mix(in srgb, var(--rg-primary) 40%, #000) 0%, color-mix(in srgb, var(--rg-primary) 82%, #000) 100%); }
:is(.rg-home-why, .rg-div-why)[class*="is-style-rg-why-"] { position: relative; overflow: hidden; background-color: var(--rg-why-bg); color: var(--rg-why-ink); }
:is(.rg-home-why, .rg-div-why)[class*="is-style-rg-why-"]:not(.is-style-rg-why-gradient) { background-image: none; }
/* rtl.css mirrors the home Why background with html[dir=rtl] (higher specificity): flat tones must switch it off there too. */
html[dir="rtl"] :is(.rg-home-why, .rg-div-why)[class*="is-style-rg-why-"]:not(.is-style-rg-why-gradient) { background-image: none; }
:is(.rg-home-why, .rg-div-why).is-style-rg-why-gradient:dir(rtl) { background-image: linear-gradient(225deg, color-mix(in srgb, var(--rg-primary) 40%, #000) 0%, color-mix(in srgb, var(--rg-primary) 82%, #000) 100%); }

/* Colours that follow the tone in every layout */
:is(.rg-home-why, .rg-div-why) :is(h2, h3) { color: var(--rg-why-ink); overflow-wrap: break-word; }
:is(.rg-home-why, .rg-div-why) .rg-eyebrow { color: var(--rg-why-accent); }
:is(.rg-home-why, .rg-div-why) .rg-section__head p:not(.rg-eyebrow) { color: var(--rg-why-muted); }
:is(.rg-home-why, .rg-div-why) .rg-why__item :is(.rg-why__num, .rg-why__item-num) { color: var(--rg-why-accent); }
:is(.rg-home-why, .rg-div-why) .rg-why__item :is(.rg-why__title, .rg-why__item-title) { color: var(--rg-why-ink) !important; }
:is(.rg-home-why, .rg-div-why) .rg-why__item :is(.rg-why__text, .rg-why__item-text) { color: var(--rg-why-muted); }

/* Columns layout (the home Why, and division sections in the columns layout): four columns divided by hairlines */
:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) > .rg-container { display: block; }
:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-section__head { position: static; }
:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why > .rg-why__item { display: block; margin: 0; padding: 28px 28px 8px; background: none; border: 0; border-inline-start: 1px solid var(--rg-why-line); border-radius: 0; box-shadow: none; min-inline-size: 0; }
:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why > .rg-why__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why__item :is(.rg-why__num, .rg-why__item-num) { display: block; inline-size: auto; block-size: auto; margin: 0 0 18px; border-radius: 0; background: none; font: 800 0.875rem/1 var(--rg-font-heading); letter-spacing: 0.12em; }
:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why__item :is(.rg-why__title, .rg-why__item-title) { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.3; }
:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why__item .rg-why__item-title::before { display: none; }
:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why__item :is(.rg-why__text, .rg-why__item-text) { margin: 0; line-height: 1.65; }
:lang(ar) :is(.rg-home-why, .rg-div-why) .rg-why__item :is(.rg-why__num, .rg-why__item-num) { letter-spacing: 0; }

@media (max-width: 1023px) {
	:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
	:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why > .rg-why__item:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 639px) {
	:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why { grid-template-columns: minmax(0, 1fr); }
	:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why > .rg-why__item,
	:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why > .rg-why__item:first-child,
	:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why > .rg-why__item:nth-child(odd) { border-inline-start: 0; padding-inline: 0; padding-block: 24px 4px; border-block-start: 1px solid var(--rg-why-line); }
	:is(.rg-home-why:not([class*="rg-div-why--"]), .rg-div-why--dark, .rg-div-why--columns) .rg-why > .rg-why__item:first-child { border-block-start: 0; }
}

/* ============================================================================================================================
   4. PROCESS  (Group .rg-home-process / .rg-div-process > .rg-steps-row > .rg-step > .rg-step__num, __title, __text)
      Vertical = timeline. Horizontal = row with a dashed connector from 1024px up; below that it becomes the vertical timeline so the
      order stays readable on tablet and phone. Numbered Steps = numbered cards.
   ============================================================================================================================ */
:is(.rg-home-process, .rg-div-process)[class*="is-style-rg-process-"] { background: #fff; background-image: none; }
:is(.rg-home-process, .rg-div-process)[class*="is-style-rg-process-"] .rg-steps-row { display: grid; position: relative; gap: 0; margin: 0; counter-reset: none; }
:is(.rg-home-process, .rg-div-process)[class*="is-style-rg-process-"] .rg-steps-row::before { content: none; }
:is(.rg-home-process, .rg-div-process)[class*="is-style-rg-process-"] .rg-steps-row > .rg-step { position: relative; display: block; margin: 0; padding: 0; min-inline-size: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
:is(.rg-home-process, .rg-div-process)[class*="is-style-rg-process-"] .rg-steps-row > .rg-step::before { content: none; }
:is(.rg-home-process, .rg-div-process)[class*="is-style-rg-process-"] .rg-step .rg-step__num { display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; margin: 0 0 16px; border-radius: 50%; background: linear-gradient(135deg, var(--rg-primary), color-mix(in srgb, var(--rg-primary) 55%, var(--rg-cyan, var(--rg-primary)))); color: #fff; font: 800 1rem/1 var(--rg-font-heading); box-shadow: 0 8px 20px rgb(40 100 232 / 0.28); position: relative; }
:is(.rg-home-process, .rg-div-process)[class*="is-style-rg-process-"] .rg-step .rg-step__title { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; overflow-wrap: break-word; }
:is(.rg-home-process, .rg-div-process)[class*="is-style-rg-process-"] .rg-step .rg-step__text { margin: 0; color: var(--rg-muted); line-height: 1.6; }

/* Vertical (and Horizontal below 1024px): timeline */
:is(.rg-home-process, .rg-div-process):is(.is-style-rg-process-vertical, .is-style-rg-process-horizontal) .rg-steps-row { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; max-inline-size: 760px; margin-inline: auto; }
:is(.rg-home-process, .rg-div-process):is(.is-style-rg-process-vertical, .is-style-rg-process-horizontal) .rg-steps-row::before { content: ""; position: absolute; inset-block: 22px; inset-inline-start: 21px; inline-size: 2px; background: var(--rg-border); }
:is(.rg-home-process, .rg-div-process):is(.is-style-rg-process-vertical, .is-style-rg-process-horizontal) .rg-steps-row > .rg-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 24px; padding-block-end: 36px; }
:is(.rg-home-process, .rg-div-process):is(.is-style-rg-process-vertical, .is-style-rg-process-horizontal) .rg-steps-row > .rg-step:last-child { padding-block-end: 0; }
:is(.rg-home-process, .rg-div-process):is(.is-style-rg-process-vertical, .is-style-rg-process-horizontal) .rg-step .rg-step__num { grid-row: span 2; margin: 0; }
:is(.rg-home-process, .rg-div-process):is(.is-style-rg-process-vertical, .is-style-rg-process-horizontal) .rg-step :is(.rg-step__title, .rg-step__text) { grid-column: 2; }
:is(.rg-home-process, .rg-div-process):is(.is-style-rg-process-vertical, .is-style-rg-process-horizontal) .rg-step .rg-step__title { align-self: end; margin: 0 0 4px; }

/* Horizontal (desktop) */
@media (min-width: 1024px) {
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-horizontal .rg-steps-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-inline-size: none; margin-inline: 0; }
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-horizontal .rg-steps-row::before { content: none; }
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-horizontal .rg-steps-row > .rg-step { display: block; padding: 0; padding-inline-end: 28px; }
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-horizontal .rg-steps-row > .rg-step::before { content: ""; position: absolute; inset-block-start: 21px; inset-inline-start: 60px; inline-size: calc(100% - 72px); block-size: 0; background: none; border-block-start: 2px dashed var(--rg-accent, var(--rg-primary)); }
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-horizontal .rg-steps-row > .rg-step:last-child::before { display: none; }
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-horizontal .rg-step .rg-step__num { grid-row: auto; margin: 0 0 20px; }
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-horizontal .rg-step :is(.rg-step__title, .rg-step__text) { grid-column: auto; }
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-horizontal .rg-step .rg-step__title { align-self: auto; margin: 0 0 8px; }
}

/* Numbered Steps: cards with a large numeral */
:is(.rg-home-process, .rg-div-process).is-style-rg-process-numbered { background: var(--rg-offwhite); }
:is(.rg-home-process, .rg-div-process).is-style-rg-process-numbered .rg-steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
:is(.rg-home-process, .rg-div-process).is-style-rg-process-numbered .rg-steps-row > .rg-step { padding: 28px 24px 24px; background: #fff; border: 1px solid var(--rg-border); border-block-start: 3px solid var(--rg-navy); border-radius: var(--rg-r-md); }
:is(.rg-home-process, .rg-div-process).is-style-rg-process-numbered .rg-step .rg-step__num { inline-size: auto; block-size: auto; justify-content: flex-start; margin: 0 0 12px; border-radius: 0; background: none; box-shadow: none; color: var(--rg-link-strong); font-size: 2.75rem; letter-spacing: -0.03em; }
@media (max-width: 1023px) {
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-numbered .rg-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
	:is(.rg-home-process, .rg-div-process).is-style-rg-process-numbered .rg-steps-row { grid-template-columns: minmax(0, 1fr); }
}
