/*
 * Rand Themes Builder – front-end styles
 *
 * Table of contents
 *  1. Design tokens (CSS custom properties – overwritten by the Customizer)
 *  2. Base / reset
 *  3. Typography
 *  4. Layout helpers
 *  5. Buttons & forms
 *  6. Top bar & header
 *  7. Navigation (desktop + mobile panel)
 *  8. Page header, breadcrumbs
 *  9. Blog list, single post, comments
 * 10. Sidebar & widgets
 * 11. Footer
 * 12. Builder pages (RandRow and Rand blocks)
 * 13. Rand plugin integration (RandPublish, Rand Contact Form)
 * 14. Block editor content (core blocks)
 * 15. Accessibility & utilities
 * 16. Advanced options (button styles, header effects, social icons, page title area, cover, dark mode)
 * 17. Social icon styles and scroll-to-top styles
 * 18. Contact info
 *
 * Breakpoints: tablet ≤ 1024px, mobile ≤ 640px (see inc/customizer/css-output.php).
 * Logical properties (margin-inline, padding-block …) keep RTL languages working.
 */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* End colour of gradients that carry white text: the secondary colour, deepened so white stays readable (v2.24). */
	--rtb-grad-end: color-mix(in srgb, var(--rtb-secondary) 66%, #0b1020);
	--rtb-primary: #4f46e5;
	--rtb-secondary: #0ea5e9;
	--rtb-accent: #f59e0b;
	--rtb-heading: #0f172a;
	--rtb-text: #334155;
	--rtb-link: #4f46e5;
	--rtb-link-hover: #3730a3;
	--rtb-bg: #ffffff;
	--rtb-surface: #f4f6fb;
	--rtb-border: #e2e8f0;

	--rtb-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rtb-font-heading: var(--rtb-font-body);
	--rtb-fs-body: 17px;
	--rtb-lh-body: 1.7;
	--rtb-heading-weight: 700;
	--rtb-heading-transform: none;
	--rtb-lh-heading: 1.2;
	--rtb-ls-heading: -0.02em;
	--rtb-fs-h1: 54px;
	--rtb-fs-h2: 40px;
	--rtb-fs-h3: 26px;

	--rtb-container: 1200px;
	--rtb-narrow: 760px;
	--rtb-section-space: 96px;
	--rtb-radius: 14px;
	--rtb-gutter: 32px;

	--rtb-btn-radius: 10px;
	--rtb-btn-py: 14px;
	--rtb-btn-px: 26px;

	--rtb-header-bg: #ffffff;
	--rtb-header-color: #0f172a;
	--rtb-header-h: 84px;
	--rtb-logo-w: 190px;
	--rtb-topbar-bg: #0f172a;
	--rtb-topbar-color: #e2e8f0;

	--rtb-footer-bg: #0b1020;
	--rtb-footer-color: #a7b0c4;
	--rtb-footer-heading: #ffffff;

	--rtb-blog-cols: 3;
	--rtb-card-ratio: 16 / 10;

	/* Advanced options (inc/customizer/advanced.php). Empty colour options fall back to the brand colours. */
	--rtb-body-weight: 400;
	--rtb-ls-body: 0em;
	--rtb-fs-h4: 21px;
	--rtb-fs-h5: 18px;
	--rtb-fs-h6: 16px;
	--rtb-lh-h1: 1.1;
	--rtb-lh-h2: 1.15;
	--rtb-lh-h3: 1.25;
	--rtb-lh-h4: 1.3;
	--rtb-lh-h5: 1.35;
	--rtb-lh-h6: 1.4;
	--rtb-ls-h1: -0.03em;
	--rtb-ls-h2: -0.02em;
	--rtb-ls-h3: -0.01em;
	--rtb-ls-h4: -0.01em;
	--rtb-ls-h5: 0em;
	--rtb-ls-h6: 0.04em;
	--rtb-social-size: 36px;
	--rtb-social-icon: 18px;
	--rtb-btt-icon: 20px;
	--rtb-btt-x: 22px;
	--rtb-btt-y: 22px;
	--rtb-btt-after: 600;
	--rtb-menu-fs: 16px;
	--rtb-menu-weight: 500;
	--rtb-menu-transform: none;
	--rtb-menu-ls: 0em;
	--rtb-menu-gap: 4px;
	--rtb-btn-fs: 15px;
	--rtb-btn-weight: 600;
	--rtb-btn-bw: 2px;
	--rtb-btn-color: #ffffff;
	--rtb-btn-color-hover: #ffffff;
	--rtb-sidebar-w: 320px;
	--rtb-field-bg: #ffffff;
	--rtb-field-text: #0f172a;
	--rtb-field-border: var(--rtb-border);
	--rtb-field-bw: 1px;
	--rtb-field-radius: 10px;
	--rtb-field-py: 13px;
	--rtb-header-opacity: 100;
	--rtb-glass-blur: 14px;
	--rtb-header-border-w: 1px;
	--rtb-header-btn: 44px;
	--rtb-contact-fs: 15px;
	--rtb-contact-weight: 400;
	--rtb-contact-icon: 16px;
	--rtb-contact-box: 32px;
	--rtb-contact-gap: 18px;
	--rtb-contact-icon-gap: 8px;
	--hfb-top-h: 42px;
	--hfb-bottom-h: 56px;
	--hfb-top-fs: 14px;
	--hfb-bottom-fs: 16px;
	--hfb-top-bw: 0px;
	--hfb-bottom-bw: 1px;
	--hfb-panel-w: 340px;
	--hfb-ftop-pad: 52px;
	--hfb-fbottom-pad: 22px;
	--hfb-ftop-bw: 1px;
	--hfb-fmain-bw: 0px;
	--hfb-fbottom-bw: 1px;
	--rtb-ph-overlay: 60;
	--rtb-ph-pad: 72px;
	--rtb-ph-title: 48px;
	--rtb-footer-pad: 64px;
	--rtb-btt-color: #ffffff;
	--rtb-btt-size: 46px;
	--rtb-btt-radius: 14px;
	--rtb-cover-overlay: 55;
	--rtb-dark-bg: #0b1020;
	--rtb-dark-surface: #121a2e;
	--rtb-dark-heading: #f1f5f9;
	--rtb-dark-text: #cbd5e1;
	--rtb-dark-border: #24304a;

	/* Derived tokens (no setting needed). */
	--rtb-primary-hover: color-mix(in srgb, var(--rtb-primary) 82%, #000);
	--rtb-primary-soft: color-mix(in srgb, var(--rtb-primary) 10%, transparent);
	--rtb-ring: 0 0 0 3px color-mix(in srgb, var(--rtb-primary) 35%, transparent);
	--rtb-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
	--rtb-shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .22);
	--rtb-shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);
	--rtb-ease: cubic-bezier(.2, .7, .2, 1);
	--rtb-admin-bar: 0px;
}

.admin-bar { --rtb-admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --rtb-admin-bar: 46px; } }

/* ==========================================================================
   2. Base / reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--rtb-header-h) + var(--rtb-admin-bar) + 16px);
}

body {
	margin: 0;
	background: var(--rtb-bg);
	color: var(--rtb-text);
	font-family: var(--rtb-font-body);
	font-size: var(--rtb-fs-body);
	line-height: var(--rtb-lh-body);
	font-weight: var(--rtb-body-weight);
	letter-spacing: var(--rtb-ls-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video, canvas, iframe { max-width: 100%; }
img, video { height: auto; }
img { vertical-align: middle; }
figure { margin: 0 0 1.5em; }
hr { border: 0; border-top: 1px solid var(--rtb-border); margin: 2.5em 0; }

a {
	color: var(--rtb-link);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
	transition: color .2s var(--rtb-ease);
}
a:hover { color: var(--rtb-link-hover); }

:focus-visible { outline: 2px solid var(--rtb-primary); outline-offset: 3px; border-radius: 4px; }

::selection { background: color-mix(in srgb, var(--rtb-primary) 22%, transparent); }

.site { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.site-content { flex: 1 0 auto; }

/* Boxed site layout */
.rtb-layout-boxed { background: var(--rtb-surface); }
.rtb-layout-boxed .site {
	max-width: calc(var(--rtb-container) + 2 * var(--rtb-gutter) + 80px);
	margin-inline: auto;
	background: var(--rtb-bg);
	box-shadow: 0 0 60px -20px rgba(15, 23, 42, .2);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .55em;
	color: var(--rtb-heading);
	font-family: var(--rtb-font-heading);
	font-weight: var(--rtb-heading-weight);
	line-height: var(--rtb-lh-heading);
	letter-spacing: var(--rtb-ls-heading);
	text-transform: var(--rtb-heading-transform);
	text-wrap: balance;
}
/* Each heading level has its own size, line height and letter spacing (Customizer › Typography › Headings). */
h1 { font-size: var(--rtb-fs-h1); line-height: var(--rtb-lh-h1); letter-spacing: var(--rtb-ls-h1); }
h2 { font-size: var(--rtb-fs-h2); line-height: var(--rtb-lh-h2); letter-spacing: var(--rtb-ls-h2); }
h3 { font-size: var(--rtb-fs-h3); line-height: var(--rtb-lh-h3); letter-spacing: var(--rtb-ls-h3); }
h4 { font-size: var(--rtb-fs-h4); line-height: var(--rtb-lh-h4); letter-spacing: var(--rtb-ls-h4); }
h5 { font-size: var(--rtb-fs-h5); line-height: var(--rtb-lh-h5); letter-spacing: var(--rtb-ls-h5); }
h6 { font-size: var(--rtb-fs-h6); line-height: var(--rtb-lh-h6); letter-spacing: var(--rtb-ls-h6); text-transform: uppercase; }

p, ul, ol, dl, pre, table, blockquote { margin: 0 0 1.25em; }
p { text-wrap: pretty; }
ul, ol { padding-inline-start: 1.3em; }
li + li { margin-top: .3em; }
strong, b { font-weight: 700; color: inherit; }
small { font-size: .875em; }

blockquote {
	margin-inline: 0;
	padding: .4em 0 .4em 1.4em;
	border-inline-start: 4px solid var(--rtb-primary);
	font-size: 1.12em;
	color: var(--rtb-heading);
}
blockquote cite { display: block; margin-top: .6em; font-size: .85em; font-style: normal; color: var(--rtb-text); }

code, kbd, pre, samp { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: .9em; }
:not(pre) > code { padding: .15em .4em; border-radius: 6px; background: var(--rtb-surface); }
pre { padding: 1.2em 1.4em; overflow: auto; border-radius: var(--rtb-radius); background: #0f172a; color: #e2e8f0; }

table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .75em 1em; border-bottom: 1px solid var(--rtb-border); text-align: start; }
th { color: var(--rtb-heading); font-weight: 600; }

/* Small "eyebrow" label above headings and a larger intro paragraph. */
.rtb-eyebrow {
	display: inline-block;
	margin-bottom: .9em !important;
	color: var(--rtb-primary);
	font-size: .82em !important;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
p.rtb-eyebrow.has-text-align-center { display: block; }
.rtb-lead { font-size: 1.15em; line-height: 1.65; }
.rtb-narrow { max-width: 680px; margin-inline: auto; }
.rtb-gradient-text {
	background: linear-gradient(90deg, var(--rtb-secondary), color-mix(in srgb, var(--rtb-primary) 50%, #fff));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */
.container {
	width: 100%;
	max-width: calc(var(--rtb-container) + 2 * var(--rtb-gutter));
	margin-inline: auto;
	padding-inline: var(--rtb-gutter);
}

.content-area { padding-block: calc(var(--rtb-section-space) * .7) var(--rtb-section-space); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.rtb-sidebar-right .content-grid { grid-template-columns: minmax(0, 1fr) var(--rtb-sidebar-w); }
.rtb-sidebar-left .content-grid { grid-template-columns: var(--rtb-sidebar-w) minmax(0, 1fr); }
.rtb-sidebar-left .content-grid > .widget-area { order: -1; }

/* Comfortable reading width for posts and pages without sidebar. */
.rtb-sidebar-none.single .site-main,
.rtb-sidebar-none.page .site-main:not(.builder-content) {
	width: 100%;
	max-width: var(--rtb-narrow);
	margin-inline: auto;
}

@media (max-width: 1024px) {
	.rtb-sidebar-right .content-grid,
	.rtb-sidebar-left .content-grid { grid-template-columns: minmax(0, 1fr); }
	.rtb-sidebar-left .content-grid > .widget-area { order: 0; }
}

/* ==========================================================================
   5. Buttons & forms
   ========================================================================== */
.rtb-button,
.wp-element-button,
.wp-block-button__link,
.wp-block-search__button,
button[type="submit"],
input[type="submit"],
input[type="button"],
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: var(--rtb-btn-py) var(--rtb-btn-px);
	border: var(--rtb-btn-bw) solid transparent;
	border-radius: var(--rtb-btn-radius);
	background: var(--rtb-btn-bg, var(--rtb-primary));
	color: var(--rtb-btn-color);
	font-family: inherit;
	font-size: var(--rtb-btn-fs);
	font-weight: var(--rtb-btn-weight);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--rtb-ease), color .2s var(--rtb-ease), border-color .2s var(--rtb-ease), transform .2s var(--rtb-ease), box-shadow .2s var(--rtb-ease);
}
.rtb-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.button:hover {
	background: var(--rtb-btn-bg-hover, var(--rtb-primary-hover));
	color: var(--rtb-btn-color-hover);
}
.rtb-btn-glow .rtb-button:hover,
.rtb-btn-glow .wp-element-button:hover,
.rtb-btn-glow .wp-block-button__link:hover,
.rtb-btn-glow button[type="submit"]:hover,
.rtb-btn-glow input[type="submit"]:hover { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--rtb-btn-bg, var(--rtb-primary)) 70%, transparent); }
.rtb-button:active { transform: translateY(1px); }
.rtb-buttons-upper .rtb-button,
.rtb-buttons-upper .wp-element-button,
.rtb-buttons-upper .wp-block-button__link,
.rtb-buttons-upper button[type="submit"],
.rtb-buttons-upper input[type="submit"] { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }

/* Rand Button "Theme" style inherits the theme button above; keep its own size classes. */
.wp-block-rand-button.rand-btn--theme { font-size: 1rem; }
.wp-block-rand-button.rand-btn--theme.rand-btn--size-large { font-size: 1.05rem; padding: calc(var(--rtb-btn-py) * 1.12) calc(var(--rtb-btn-px) * 1.1); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], select, textarea {
	width: 100%;
	padding: var(--rtb-field-py) calc(var(--rtb-field-py) * 1.2);
	border: var(--rtb-field-bw) solid var(--rtb-field-border);
	border-radius: var(--rtb-field-radius);
	background: var(--rtb-field-bg);
	color: var(--rtb-field-text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--rtb-primary); box-shadow: var(--rtb-ring); }
textarea { min-height: 140px; resize: vertical; }
label { font-weight: 600; color: var(--rtb-heading); }

.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }
.search-form .search-submit { padding-inline: 16px; }

/* ==========================================================================
   6. Header (Rand Header Builder: top / main / bottom rows, desktop + mobile)
   ========================================================================== */
.site-header { position: relative; z-index: 100; color: var(--rtb-header-color); }

/*
 * Sticky rows – set per row and per layout (Header › Top / Main / Bottom row ›
 * Stick to top). The header and the active layout become "display: contents",
 * so every sticky row sticks to the page on its own; assets/js/theme.js sets
 * --hfb-stick-top on each one (admin bar + the sticky rows above it).
 */
body:not(.rtb-transparent-header) .site-header:is(.has-sticky-desktop, .has-sticky-mobile) { display: contents; }
html:not(.rtb-nav-mobile) body:not(.rtb-transparent-header) .site-header.has-sticky-desktop .hfb-device--desktop,
html.rtb-nav-mobile body:not(.rtb-transparent-header) .site-header.has-sticky-mobile .hfb-device--mobile { display: contents; }
.hfb-row.is-sticky { position: sticky; top: var(--hfb-stick-top, var(--rtb-admin-bar)); }
/* Show only on scroll: hidden at the top of the page, slides in once scrolled down. */
.site-header:not(.is-past) .hfb-row.is-onscroll { display: none; }
.site-header.is-past .hfb-row.is-onscroll { animation: rtb-row-in .35s var(--rtb-ease) both; }
@keyframes rtb-row-in { from { opacity: 0; transform: translateY(-60%); } }
@media (prefers-reduced-motion: reduce) { .site-header.is-past .hfb-row.is-onscroll { animation: none; } }

/* Desktop or mobile layout (html.rtb-nav-mobile is set by assets/js/theme.js). */
.hfb-device--mobile { display: none; }
html.rtb-nav-mobile .hfb-device--desktop { display: none; }
html.rtb-nav-mobile .hfb-device--mobile { display: block; }

/* Rows */
.hfb-row {
	--row-h: var(--rtb-header-h);
	--row-bg: var(--rtb-header-bg);
	--row-color: var(--rtb-header-color);
	--row-bw: 0px;
	--row-bc: var(--rtb-border);
	position: relative;
	background: color-mix(in srgb, var(--row-bg) calc(var(--rtb-header-opacity) * 1%), transparent);
	color: var(--row-color);
	border-bottom: var(--row-bw) solid var(--row-bc);
	transition: background-color .3s var(--rtb-ease), color .3s var(--rtb-ease), box-shadow .3s var(--rtb-ease);
}
/* Font size per row (Header › … row › Style): menu, contact info and text of the row. */
.hfb-row { --row-fs: var(--rtb-menu-fs); font-size: var(--row-fs); }
.hfb-row--top { --row-fs: var(--hfb-top-fs); }
.hfb-row--bottom { --row-fs: var(--hfb-bottom-fs); }
.hfb-row .main-navigation a,
.hfb-row .contact-info { font-size: var(--row-fs); }
.hfb-row--top { z-index: 103; }
.hfb-row--main { z-index: 102; }
.hfb-row--bottom { z-index: 101; }
.hfb-row--top {
	--row-h: var(--hfb-top-h);
	--row-bg: var(--rtb-topbar-bg);
	--row-color: var(--rtb-topbar-color);
	--row-bw: var(--hfb-top-bw);
	--row-bc: var(--hfb-top-bc, color-mix(in srgb, var(--rtb-topbar-color) 15%, transparent));
}
.rtb-header-border .hfb-row--main { --row-bw: var(--rtb-header-border-w); --row-bc: var(--rtb-header-border, var(--rtb-border)); }
.hfb-row--bottom {
	--row-h: var(--hfb-bottom-h);
	--row-bg: var(--hfb-bottom-bg, var(--rtb-header-bg));
	--row-color: var(--hfb-bottom-color, var(--rtb-header-color));
	--row-bw: var(--hfb-bottom-bw);
	--row-bc: var(--hfb-bottom-bc, var(--rtb-border));
}
.hfb-row__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: var(--row-h);
	max-width: calc(var(--rtb-container) + 2 * var(--rtb-gutter));
	margin-inline: auto;
	padding: var(--row-pt) var(--row-pr) var(--row-pb) var(--row-pl);
	transition: min-height .3s var(--rtb-ease);
}
/* Spacing per row (Header › … row › Layout › Spacing); empty = theme default. */
.hfb-row--top { --row-pt: var(--hfb-top-sp-top, 0px); --row-pr: var(--hfb-top-sp-right, var(--rtb-gutter)); --row-pb: var(--hfb-top-sp-bottom, 0px); --row-pl: var(--hfb-top-sp-left, var(--rtb-gutter)); }
.hfb-row--main { --row-pt: var(--hfb-main-sp-top, 0px); --row-pr: var(--hfb-main-sp-right, var(--rtb-gutter)); --row-pb: var(--hfb-main-sp-bottom, 0px); --row-pl: var(--hfb-main-sp-left, var(--rtb-gutter)); }
.hfb-row--bottom { --row-pt: var(--hfb-bottom-sp-top, 0px); --row-pr: var(--hfb-bottom-sp-right, var(--rtb-gutter)); --row-pb: var(--hfb-bottom-sp-bottom, 0px); --row-pl: var(--hfb-bottom-sp-left, var(--rtb-gutter)); }

.hfb-width--full .hfb-row__inner { max-width: none; }
/* Without a centre element the left and right slots share the row freely. */
.hfb-row__inner:has(> .hfb-slot--center.is-empty) { display: flex; justify-content: space-between; }
.hfb-row__inner:has(> .hfb-slot--center.is-empty) > .hfb-slot--center { display: none; }
.hfb-row__inner:has(> .hfb-slot--center.is-empty) > .hfb-slot--right { margin-inline-start: auto; }
.hfb-slot { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hfb-slot > * { flex-shrink: 0; }
/* Text elements may shrink and wrap – no sideways scrolling on small screens. */
.hfb-slot > :is(.hfb-contact, .hfb-html) { flex-shrink: 1; min-width: 0; }
.hfb-slot--center { justify-content: center; }
.hfb-slot--right { justify-content: flex-end; }
.hfb-row--top .hfb-slot { gap: 18px; }

/* Logo */
.site-branding { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.site-branding .custom-logo-link { display: block; line-height: 0; }
.site-branding .custom-logo { width: var(--rtb-logo-w); max-width: 100%; height: auto; max-height: calc(var(--row-h, var(--rtb-header-h)) - 16px); object-fit: contain; object-position: left center; transition: max-height .3s var(--rtb-ease); }
.hfb-slot--center .site-branding { align-items: center; text-align: center; }
.hfb-slot--center .site-branding .custom-logo { object-position: center; }
.site-title { margin: 0; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.01em; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 2px 0 0; font-size: .82rem; opacity: .75; }

/* Elements */
.hfb-row .hfb-html p { margin: 0; }
.hfb-row .hfb-html a { color: inherit; text-decoration: none; }
.hfb-row .hfb-html a:hover { text-decoration: underline; }
.hfb-item--searchform .search-form { min-width: 240px; }
.hfb-placeholder { padding: 6px 10px; border: 1px dashed currentColor; border-radius: 8px; font-size: .8rem; opacity: .7; }

/* All header buttons share one height (Customizer › Header › Buttons › Size of the header buttons). */
.header-cta { min-height: var(--rtb-header-btn); padding-block: 0; padding-inline: calc(var(--rtb-header-btn) * .45); font-size: .92rem; white-space: nowrap; }
.header-cta--outline:not(:hover) { background: transparent; border-color: currentColor; color: var(--rtb-btn-bg, var(--rtb-primary)); }
.header-cta--text { background: transparent !important; border-color: transparent !important; color: inherit !important; box-shadow: none !important; padding-inline: 6px; }
.header-cta--text:hover { text-decoration: underline; }
.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rtb-header-btn);
	height: var(--rtb-header-btn);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color .2s;
}
.icon-button:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

.header-search { padding-block: 16px 20px; background: var(--rtb-header-bg); border-top: 1px solid color-mix(in srgb, var(--rtb-header-color) 10%, transparent); }
.header-search .search-form { max-width: 640px; margin-inline: auto; }

/* Transparent header over the first section of the front page */
.rtb-transparent-header .site-header:not(.is-scrolled) {
	position: fixed;
	inset-inline: 0;
	top: var(--rtb-admin-bar);
}
/* Transparent colours – only while the mobile menu is closed (open: normal header colours). */
.rtb-transparent-header:not(.rtb-menu-open) .site-header:not(.is-scrolled) {
	color: var(--rtb-tr-color, #fff);
	--rtb-header-color: var(--rtb-tr-color, #fff);
	--rtb-menu-hover: var(--rtb-tr-hover, var(--rtb-tr-color, #fff));
	--rtb-menu-color: var(--rtb-tr-color, #fff);
}
.rtb-transparent-header:not(.rtb-menu-open) .site-header:not(.is-scrolled) .hfb-row { --row-bg: var(--rtb-tr-bg, transparent); --row-color: var(--rtb-tr-color, #fff); --row-bc: transparent; box-shadow: none; }
.rtb-transparent-header:not(.rtb-menu-open) .site-header:not(.is-scrolled) .hfb-row { background: var(--rtb-tr-bg, transparent); }
.rtb-trbtn-outline.rtb-transparent-header:not(.rtb-menu-open) .site-header:not(.is-scrolled) .header-cta { border-color: currentColor; background: transparent; color: var(--rtb-tr-color, #fff); }
.rtb-trbtn-white.rtb-transparent-header:not(.rtb-menu-open) .site-header:not(.is-scrolled) .header-cta { border-color: #fff; background: #fff; color: #0b1020; }
.rtb-transparent-header:not(.rtb-sticky-header) .site-header.is-scrolled { position: absolute; inset-inline: 0; top: var(--rtb-admin-bar); }
.rtb-transparent-header.rtb-sticky-header .site-header.is-scrolled { position: fixed; inset-inline: 0; top: var(--rtb-admin-bar); }
/* Transparent + sticky: after scrolling only the rows set to "Stick to top" stay (the others scroll away). */
.rtb-transparent-header.rtb-sticky-header .site-header.is-scrolled .hfb-row:not(.is-sticky) { display: none; }
.rtb-transparent-header .rtb-hero:first-child { padding-top: calc(var(--rtb-header-h) + 72px) !important; }

/* Shadow under the sticky header */
/* Hairline under the header – hidden (offset 0) when the row has its own bottom line. */
.rtb-header-shadow .hfb-device > .hfb-row:last-child { box-shadow: 0 calc(1px - min(var(--row-bw), 1px)) 0 var(--rtb-border); }
.rtb-header-shadow .site-header.is-scrolled .hfb-row.is-last-sticky { box-shadow: 0 8px 30px -12px rgba(15, 23, 42, .25); }

/* ==========================================================================
   7. Navigation (header menus + mobile menu panel)
   ========================================================================== */
.main-navigation ul { margin: 0; padding: 0; list-style: none; }
.main-navigation li { position: relative; margin: 0; }
.main-navigation a {
	display: flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	font-size: var(--rtb-menu-fs);
	font-weight: var(--rtb-menu-weight);
	letter-spacing: var(--rtb-menu-ls);
	text-transform: var(--rtb-menu-transform);
}
.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.submenu-toggle .rtb-icon { transition: transform .2s var(--rtb-ease); }
.submenu-toggle[aria-expanded="true"] .rtb-icon { transform: rotate(180deg); }

/* Horizontal menus in the header rows */
.primary-menu { display: flex; align-items: center; gap: var(--rtb-menu-gap); }
.primary-menu > li { display: flex; align-items: center; white-space: nowrap; }
.primary-menu > li > a { position: relative; padding: 10px 14px; border-radius: 10px; }
.primary-menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 14px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--rtb-menu-hover, var(--rtb-primary));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--rtb-ease);
}
.primary-menu > li > a:hover::after,
.primary-menu > :is(.current-menu-item, .current-menu-ancestor, .current_page_parent) > a::after { transform: scaleX(1); }
.primary-menu > li.menu-item-has-children > a { padding-inline-end: 4px; }
.primary-menu .submenu-toggle { width: 26px; margin-inline-end: 6px; }
.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	z-index: 20;
	min-width: 230px;
	padding: 8px;
	border: 1px solid var(--rtb-border);
	border-radius: var(--rtb-radius);
	background: var(--rtb-submenu-bg, var(--rtb-bg));
	color: var(--rtb-submenu-color, var(--rtb-text));
	box-shadow: var(--rtb-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s var(--rtb-ease), transform .2s var(--rtb-ease), visibility .2s;
}
.primary-menu .sub-menu .sub-menu { top: -9px; inset-inline-start: 100%; }
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { padding: 9px 12px; border-radius: 8px; }
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a { background: var(--rtb-primary-soft); color: var(--rtb-menu-hover, var(--rtb-primary)); }
.primary-menu .sub-menu li { display: flex; align-items: center; justify-content: space-between; }
.primary-menu .sub-menu .submenu-toggle .rtb-icon { transform: rotate(-90deg); }
/* Secondary menu: smaller, without underline (e.g. in the top row) */
.secondary-menu > li > a { padding: 6px 10px; font-size: .9em; }
.secondary-menu > li > a::after { display: none; }
.secondary-menu > li > a:hover { text-decoration: underline; }

/* Mobile menu panel (opened by the ☰ element) */
.menu-panel {
	position: fixed;
	top: calc(var(--rtb-header-h) + var(--rtb-admin-bar));
	inset-inline: 0;
	bottom: 0;
	z-index: 1000;
	overflow-y: auto;
	padding: 20px var(--rtb-gutter) 40px;
	background: var(--hfb-panel-bg, var(--rtb-bg));
	color: var(--hfb-panel-color, var(--rtb-heading));
	border-top: 1px solid var(--rtb-border);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity .25s var(--rtb-ease), transform .3s var(--rtb-ease), visibility .3s;
}
.menu-panel--left, .menu-panel--right {
	top: var(--rtb-admin-bar) !important;
	width: min(var(--hfb-panel-w), 90vw);
	padding-top: 64px;
	border-top: 0;
	box-shadow: var(--rtb-shadow-lg);
	opacity: 1;
}
.menu-panel--left { inset-inline: 0 auto; transform: translateX(-105%); }
.menu-panel--right { inset-inline: auto 0; transform: translateX(105%); }
.menu-panel--full { top: var(--rtb-admin-bar) !important; padding-top: 72px; border-top: 0; }
.rtb-menu-open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.rtb-menu-open { overflow: hidden; }
.menu-panel__inner { display: flex; flex-direction: column; gap: 22px; max-width: 640px; margin-inline: auto; }
.menu-panel--full .menu-panel__inner { text-align: center; }
.menu-panel__close { position: absolute; top: 12px; inset-inline-end: 12px; display: none; }
.menu-panel--left .menu-panel__close, .menu-panel--right .menu-panel__close, .menu-panel--full .menu-panel__close { display: inline-flex; }
.menu-panel__backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(11, 16, 32, .5); opacity: 0; transition: opacity .3s; }
.rtb-menu-open .menu-panel__backdrop:not([hidden]) { opacity: 1; }
.menu-panel .mobile-menu li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--rtb-border); }
.menu-panel .mobile-menu a { flex: 1; padding: 14px 4px; font-size: 1.08rem; }
.menu-panel--full .mobile-menu a { justify-content: center; font-size: 1.3rem; }
.menu-panel .mobile-menu .current-menu-item > a { color: var(--rtb-primary); }
.menu-panel .mobile-menu .submenu-toggle { width: 44px; height: 44px; }
.menu-panel .mobile-menu .sub-menu { display: none; width: 100%; padding-inline-start: 16px; }
.menu-panel .mobile-menu .sub-menu li:last-child { border-bottom: 0; }
.menu-panel .mobile-menu li.is-open > .sub-menu { display: block; }
.menu-panel .header-cta { display: flex; width: 100%; padding-block: 15px; }
.menu-panel--full .social-icons { justify-content: center; align-items: center; }
.menu-toggle__close { display: none; }
.rtb-menu-open .menu-toggle__open { display: none; }
.rtb-menu-open .menu-toggle__close { display: inline-flex; }
.rtb-transparent-header.rtb-menu-open .site-header .hfb-row { --row-bg: var(--rtb-header-bg); --row-color: var(--rtb-header-color); }

/* ==========================================================================
   8. Page header, breadcrumbs
   ========================================================================== */
.page-header {
	position: relative;
	padding-block: var(--rtb-ph-pad);
	background:
		radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--rtb-primary) 14%, transparent), transparent 70%),
		radial-gradient(900px 300px at 0% 120%, color-mix(in srgb, var(--rtb-secondary) 12%, transparent), transparent 70%),
		var(--rtb-ph-bg, var(--rtb-surface));
	color: var(--rtb-ph-color, var(--rtb-text));
	border-bottom: 1px solid var(--rtb-border);
}
.page-header > .container { position: relative; z-index: 1; }
.page-header .page-title { margin: 0; font-size: var(--rtb-ph-title); color: var(--rtb-ph-color, var(--rtb-heading)); }
.page-description { max-width: 720px; margin-top: 14px; font-size: 1.08em; }
.page-description p:last-child { margin-bottom: 0; }

.breadcrumbs { margin-bottom: 14px; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { margin: 0; color: color-mix(in srgb, var(--rtb-text) 80%, transparent); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--rtb-primary); }

/* ==========================================================================
   9. Blog list, single post, comments
   ========================================================================== */
.post-list--grid { display: grid; grid-template-columns: repeat(var(--rtb-blog-cols), minmax(0, 1fr)); gap: 32px; }
.post-list--list { display: grid; gap: 28px; }
/* Next to a sidebar the column setting is a maximum: cards fill the narrower space automatically. */
@media (min-width: 1025px) {
	.rtb-sidebar-right .post-list--grid,
	.rtb-sidebar-left .post-list--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--rtb-border);
	border-radius: calc(var(--rtb-radius) + 4px);
	background: var(--rtb-bg);
	transition: transform .3s var(--rtb-ease), box-shadow .3s var(--rtb-ease), border-color .3s;
}
.rtb-cards-shadow .post-card { border-color: transparent; box-shadow: var(--rtb-shadow-md); }
.rtb-cards-flat .post-card { border-color: transparent; background: var(--rtb-surface); }
.post-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--rtb-shadow-lg); }
.post-card .entry-thumbnail { display: block; overflow: hidden; aspect-ratio: var(--rtb-card-ratio); background: var(--rtb-surface); }
.post-card .entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--rtb-ease); }
.post-card:hover .entry-thumbnail img { transform: scale(1.04); }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 26px 26px 28px; }
.post-card .entry-title { margin-bottom: .4em; font-size: calc(var(--rtb-fs-h3) * .86); }
.post-card .entry-title a { color: var(--rtb-heading); text-decoration: none; }
.post-card .entry-title a:hover { color: var(--rtb-primary); }
.post-card .entry-summary { margin-top: 10px; font-size: .96em; }
.post-card .entry-summary p { margin-bottom: 1em; }
.post-card .read-more { margin-top: auto; }

.post-list--list .post-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.post-list--list .post-card:not(.has-post-thumbnail) { grid-template-columns: minmax(0, 1fr); }
.post-list--list .post-card .entry-thumbnail { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 640px) { .post-list--list .post-card { grid-template-columns: minmax(0, 1fr); } }

.badge { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 99px; background: var(--rtb-accent); color: #111; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.read-more .rtb-icon { transition: transform .2s var(--rtb-ease); }
.read-more:hover .rtb-icon { transform: translateX(4px); }

.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: color-mix(in srgb, var(--rtb-text) 85%, transparent); font-size: .85rem; }
.entry-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--rtb-primary); }
.entry-meta .rtb-icon { opacity: .7; }

.entry--single > .entry-header { margin-bottom: 28px; }
.entry--single .entry-title { font-size: var(--rtb-fs-h1); }
.entry--single .entry-thumbnail { margin: 0 0 36px; overflow: hidden; border-radius: calc(var(--rtb-radius) + 4px); }
.entry--page .entry-thumbnail { margin: 0 0 32px; overflow: hidden; border-radius: calc(var(--rtb-radius) + 4px); }

.entry-content > * { margin-block: 0 1.25em; }
.entry-content > h2, .entry-content > h3 { margin-top: 1.6em; }
.entry-content img { border-radius: calc(var(--rtb-radius) * .7); }

.tag-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag-links a { padding: 5px 12px; border-radius: 99px; background: var(--rtb-surface); color: var(--rtb-text); font-size: .85rem; text-decoration: none; }
.tag-links a:hover { background: var(--rtb-primary); color: #fff; }

.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 48px; padding: 28px; border-radius: calc(var(--rtb-radius) + 4px); background: var(--rtb-surface); }
.author-box img { border-radius: 50%; }
.author-box__name { margin: 0 0 4px; font-weight: 700; }
.author-box__name a { color: var(--rtb-heading); text-decoration: none; }
.author-box__bio { margin: 0; font-size: .95em; }

.post-navigation { margin-top: 48px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation a { display: block; height: 100%; padding: 20px 24px; border: 1px solid var(--rtb-border); border-radius: var(--rtb-radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.post-navigation a:hover { border-color: var(--rtb-primary); box-shadow: var(--rtb-shadow-md); }
.post-navigation .nav-next { text-align: end; grid-column: 2; }
.post-navigation .nav-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rtb-primary); }
.post-navigation .nav-title { display: block; margin-top: 4px; color: var(--rtb-heading); font-weight: 600; }
@media (max-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: 1; } }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--rtb-border); border-radius: 12px; color: var(--rtb-heading); text-decoration: none; font-weight: 600; }
.page-numbers.current, .page-numbers:hover { border-color: var(--rtb-primary); background: var(--rtb-primary); color: #fff; }
.page-numbers.dots { border: 0; }

.comments-area { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--rtb-border); }
.comment-list { margin: 0 0 40px; padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-inline-start: 32px; }
.comment-body { margin-bottom: 20px; padding: 22px 24px; border-radius: var(--rtb-radius); background: var(--rtb-surface); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .88rem; }
.comment-author .avatar { float: inline-start; margin-inline-end: 12px; border-radius: 50%; }
.comment-metadata a { color: inherit; text-decoration: none; opacity: .75; }
.comment-form { display: grid; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; font-size: .9rem; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

.error-404__inner { max-width: 640px; padding-block: var(--rtb-section-space); text-align: center; }
.error-404__code { margin: 0; font-size: clamp(90px, 18vw, 160px); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--rtb-primary), var(--rtb-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404 .search-form { max-width: 460px; margin: 28px auto; }

/* ==========================================================================
   10. Sidebar & widgets
   ========================================================================== */
.widget-area .widget { margin-bottom: 32px; padding: 26px; border: 1px solid var(--rtb-border); border-radius: calc(var(--rtb-radius) + 2px); }
.rtb-cards-shadow .widget-area .widget { border-color: transparent; box-shadow: var(--rtb-shadow-md); }
.rtb-cards-flat .widget-area .widget { border-color: transparent; background: var(--rtb-surface); }
.widget-title, .widget h2, .widget .wp-block-heading { margin-bottom: 14px; font-size: 1.05rem; letter-spacing: 0; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding-block: 6px; border-bottom: 1px solid var(--rtb-border); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
@media (min-width: 1025px) { .widget-area { position: sticky; top: calc(var(--rtb-header-h) + var(--rtb-admin-bar) + 24px); align-self: start; } }

/* ==========================================================================
   11. Footer (Rand Footer Builder: top / main / bottom rows with 1–4 columns)
   ========================================================================== */
.site-footer { position: relative; background: var(--rtb-footer-bg); color: var(--rtb-footer-color); font-size: .95rem; }
.site-footer { --frow-color: var(--rtb-footer-color); --frow-link: var(--rtb-footer-heading); --frow-hover: var(--rtb-footer-hover, color-mix(in srgb, var(--rtb-secondary) 70%, #fff)); }
.site-footer a { color: var(--frow-link); text-decoration: none; }
.site-footer a:hover { color: var(--frow-hover); }
.site-footer h2, .site-footer h3, .site-footer .widget-title { color: var(--frow-link); }

.hfb-frow {
	--frow-pad: var(--rtb-footer-pad);
	--frow-bw: 0px;
	--frow-bc: rgba(255, 255, 255, .08);
	background: var(--frow-bg, transparent);
	color: var(--frow-color);
	font-size: var(--frow-fs, .95rem);
	border-top: var(--frow-bw) solid var(--frow-bc);
}
/* Per row (Footer › … row › Style); empty colours fall back to the footer colours. */
.hfb-frow--top { --frow-color: var(--hfb-ftop-color, var(--rtb-footer-color)); --frow-link: var(--hfb-ftop-link, var(--rtb-footer-heading)); --frow-hover: var(--hfb-ftop-hover, var(--rtb-footer-hover, color-mix(in srgb, var(--rtb-secondary) 70%, #fff))); --frow-fs: var(--hfb-ftop-fs); --frow-gap: var(--hfb-ftop-gap); }
.hfb-frow--main { --frow-color: var(--hfb-fmain-color, var(--rtb-footer-color)); --frow-link: var(--hfb-fmain-link, var(--rtb-footer-heading)); --frow-hover: var(--hfb-fmain-hover, var(--rtb-footer-hover, color-mix(in srgb, var(--rtb-secondary) 70%, #fff))); --frow-fs: var(--hfb-fmain-fs); --frow-gap: var(--hfb-fmain-gap); }
.hfb-frow--bottom { --frow-color: var(--hfb-fbottom-color, var(--rtb-footer-color)); --frow-link: var(--hfb-fbottom-link, var(--rtb-footer-heading)); --frow-hover: var(--hfb-fbottom-hover, var(--rtb-footer-hover, color-mix(in srgb, var(--rtb-secondary) 70%, #fff))); --frow-fs: var(--hfb-fbottom-fs); --frow-gap: var(--hfb-fbottom-gap); }
.hfb-fwidth--full .hfb-frow__inner { max-width: none; }
.hfb-frow--top { --frow-pad: var(--hfb-ftop-pad); --frow-bg: var(--hfb-ftop-bg); --frow-bw: var(--hfb-ftop-bw); --frow-bc: var(--hfb-ftop-bc, rgba(255, 255, 255, .08)); }
.hfb-frow--main { --frow-bg: var(--hfb-fmain-bg); --frow-bw: var(--hfb-fmain-bw); --frow-bc: var(--hfb-fmain-bc, rgba(255, 255, 255, .08)); }
.hfb-frow--bottom { --frow-pad: var(--hfb-fbottom-pad); --frow-bg: var(--hfb-fbottom-bg); --frow-bw: var(--hfb-fbottom-bw); --frow-bc: var(--hfb-fbottom-bc, rgba(255, 255, 255, .08)); }
.hfb-frow .hfb-frow__inner { display: grid; gap: 28px var(--frow-gap, 40px); padding: var(--frow-pt) var(--frow-pr) var(--frow-pb) var(--frow-pl); }
/* Spacing per row (Footer › … row › Layout › Spacing); empty = theme default. */
.hfb-frow--top { --frow-pt: var(--hfb-ftop-sp-top, var(--frow-pad)); --frow-pr: var(--hfb-ftop-sp-right, var(--rtb-gutter)); --frow-pb: var(--hfb-ftop-sp-bottom, var(--frow-pad)); --frow-pl: var(--hfb-ftop-sp-left, var(--rtb-gutter)); }
.hfb-frow--main { --frow-pt: var(--hfb-fmain-sp-top, var(--frow-pad)); --frow-pr: var(--hfb-fmain-sp-right, var(--rtb-gutter)); --frow-pb: var(--hfb-fmain-sp-bottom, var(--frow-pad)); --frow-pl: var(--hfb-fmain-sp-left, var(--rtb-gutter)); }
.hfb-frow--bottom { --frow-pt: var(--hfb-fbottom-sp-top, var(--frow-pad)); --frow-pr: var(--hfb-fbottom-sp-right, var(--rtb-gutter)); --frow-pb: var(--hfb-fbottom-sp-bottom, var(--frow-pad)); --frow-pl: var(--hfb-fbottom-sp-left, var(--rtb-gutter)); }

.hfb-cols-1 .hfb-frow__inner { grid-template-columns: minmax(0, 1fr); }
.hfb-cols-2 .hfb-frow__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hfb-cols-3 .hfb-frow__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hfb-cols-4 .hfb-frow__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1025px) {
	.hfb-layout-wide-first.hfb-cols-2 .hfb-frow__inner { grid-template-columns: 1.6fr 1fr; }
	.hfb-layout-wide-first.hfb-cols-3 .hfb-frow__inner { grid-template-columns: 1.6fr 1fr 1fr; }
	.hfb-layout-wide-first.hfb-cols-4 .hfb-frow__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
	.hfb-layout-wide-last.hfb-cols-2 .hfb-frow__inner { grid-template-columns: 1fr 1.6fr; }
	.hfb-layout-wide-last.hfb-cols-3 .hfb-frow__inner { grid-template-columns: 1fr 1fr 1.6fr; }
	.hfb-layout-wide-last.hfb-cols-4 .hfb-frow__inner { grid-template-columns: 1fr 1fr 1fr 1.5fr; }
}
@media (max-width: 1024px) { :is(.hfb-cols-3, .hfb-cols-4) .hfb-frow__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hfb-frow .hfb-frow__inner { grid-template-columns: minmax(0, 1fr); } }

/* Columns: items stacked; alignment and vertical alignment per row. */
.hfb-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hfb-valign-top .hfb-frow__inner { align-items: start; }
.hfb-valign-middle .hfb-frow__inner { align-items: center; }
.hfb-valign-bottom .hfb-frow__inner { align-items: end; }
.hfb-align-left .hfb-col { align-items: flex-start; text-align: start; }
.hfb-align-center .hfb-col { align-items: center; text-align: center; }
.hfb-align-right .hfb-col { align-items: flex-end; text-align: end; }
.hfb-align-split .hfb-col { align-items: flex-start; }
.hfb-align-split .hfb-col:last-child:not(:first-child) { align-items: flex-end; text-align: end; }
/* Short items (menu, social, copyright) sit side by side in a column. */
.hfb-col:has(> .hfb-item--fmenu, > .hfb-item--social, > .hfb-item--copyright) { flex-flow: row wrap; align-items: center; gap: 12px 28px; }
/* Logo, texts, contact info and newsletter always get their own line (e.g. texts under the logo). */
.hfb-col > :is(.hfb-item--flogo, .hfb-html, .hfb-item--contact, .hfb-item--newsletter) { flex-basis: 100%; }
.hfb-align-center .hfb-col > .hfb-item--flogo .site-branding { align-items: center; }
.hfb-align-right .hfb-col > .hfb-item--flogo .site-branding { align-items: flex-end; }
.hfb-align-center .hfb-col:has(> .hfb-item--fmenu, > .hfb-item--social, > .hfb-item--copyright) { justify-content: center; }
.hfb-align-right .hfb-col:has(> .hfb-item--fmenu, > .hfb-item--social, > .hfb-item--copyright),
.hfb-align-split .hfb-col:last-child:not(:first-child):has(> .hfb-item--fmenu, > .hfb-item--social, > .hfb-item--copyright) { justify-content: flex-end; }
@media (max-width: 640px) {
	.hfb-align-split .hfb-col:last-child:not(:first-child) { align-items: flex-start; text-align: start; }
	.hfb-align-split .hfb-col:last-child:not(:first-child):has(> .hfb-item--fmenu, > .hfb-item--social, > .hfb-item--copyright) { justify-content: flex-start; }
}

/* Footer elements */
.hfb--footer .hfb-html p:last-child { margin-bottom: 0; }
.hfb--footer .site-branding .custom-logo { max-height: 56px; }
.footer-widgets-area .widget { margin-bottom: 24px; }
.footer-widgets-area .widget:last-child { margin-bottom: 0; }
.footer-widgets-area ul { margin: 0; padding: 0; list-style: none; }
.footer-widgets-area li { margin: 0 0 8px; padding: 0; border: 0; }
.footer-widgets-area li a { color: var(--frow-color); }
.footer-widgets-area li a:hover { color: var(--frow-hover); }
.hfb-item--newsletter { width: 100%; }
.footer-newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 56px; align-items: center; text-align: start; }
.footer-newsletter h2 { margin-bottom: .3em; font-size: calc(var(--rtb-fs-h2) * .72); }
.footer-newsletter p { margin: 0; }
@media (max-width: 1024px) { .footer-newsletter__inner { grid-template-columns: minmax(0, 1fr); } }
.site-info { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* Copyright follows the alignment of its column (desktop and "Alignment on phones"). */
.hfb-align-center .site-info { justify-content: center; }
.hfb-align-right .site-info, .hfb-align-split .hfb-col:last-child:not(:first-child) .site-info { justify-content: flex-end; }
@media (max-width: 640px) {
	.hfb-align-split .hfb-col:last-child:not(:first-child) .site-info { justify-content: flex-start; }
	.hfb-malign-left .site-info { justify-content: flex-start !important; }
	.hfb-malign-center .site-info { justify-content: center !important; }
	.hfb-malign-right .site-info { justify-content: flex-end !important; }
}
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin: 0; }
.footer-menu a { color: var(--frow-color); }
.footer-menu a:hover { color: var(--frow-hover); }

.back-to-top {
	position: fixed;
	inset-inline-end: var(--rtb-btt-x);
	bottom: calc(var(--rtb-btt-y) + var(--rtb-btt-lift, 0px)); /* Lifted above footer links at the end of the page (theme.js). */
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rtb-btt-size);
	height: var(--rtb-btt-size);
	border-radius: var(--rtb-btt-radius);
	background: var(--rtb-btt-bg, var(--rtb-primary));
	color: var(--rtb-btt-color) !important;
	box-shadow: var(--rtb-shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s var(--rtb-ease), transform .3s var(--rtb-ease), visibility .3s, background-color .2s, bottom .25s var(--rtb-ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--rtb-btt-hover, color-mix(in srgb, var(--rtb-btt-bg, var(--rtb-primary)) 82%, #000)); }
.rtb-btt-left .back-to-top { inset-inline-end: auto; inset-inline-start: var(--rtb-btt-x); }
@media (max-width: 640px) { body:not(.rtb-btt-mobile) .back-to-top { display: none; } }

/* ==========================================================================
   12. Builder pages (RandRow and the Rand blocks)
   ========================================================================== */
.builder-content .builder-entry__content > * { margin-block: 0; }
.builder-content .builder-entry__content > :not(.alignfull):not(.randrow-container):not(.alignwide) {
	max-width: calc(var(--rtb-container) + 2 * var(--rtb-gutter));
	margin-inline: auto;
	padding-inline: var(--rtb-gutter);
}
.builder-content .builder-entry__content > .alignwide { max-width: calc(var(--rtb-container) + 240px); margin-inline: auto; }

/* RandRow sections span the full width; their content follows the theme content width
   unless a custom max width was set in RandRow (that rule has an id selector and wins). */
.builder-content .randrow-container { position: relative; }
.builder-content .randrow-container > .randrow-row {
	max-width: var(--rtb-container);
	margin-inline: auto;
}
.randrow-column-inner > :last-child { margin-bottom: 0; }

/* Dark sections (class "rtb-section-dark" on a RandRow: Advanced › CSS classes) */
.rtb-section-dark h1, .rtb-section-dark h2, .rtb-section-dark h3, .rtb-section-dark h4 { color: #fff; }
.rtb-section-dark a:not(.wp-block-rand-button):not(.rand-btn) { color: #fff; }
.rtb-section-dark .rtb-eyebrow { color: color-mix(in srgb, var(--rtb-secondary) 60%, #fff); }
.rtb-section-dark .rand-icon-list, .rtb-section-dark .rand-il { color: #e2e8f0; }
.rtb-hero h1 { font-size: calc(var(--rtb-fs-h1) * 1.08); }
.rtb-hero .randrow-row { position: relative; z-index: 1; }
.rtb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 300px at 80% 20%, color-mix(in srgb, var(--rtb-secondary) 28%, transparent), transparent 70%),
		radial-gradient(500px 300px at 10% 90%, color-mix(in srgb, var(--rtb-primary) 30%, transparent), transparent 70%);
	pointer-events: none;
}

.rtb-rounded-image img, .wp-block-image.rtb-rounded-image img { border-radius: calc(var(--rtb-radius) + 8px); }
/* Hero illustrations are often transparent WebP/PNG: a drop-shadow follows the shape instead of a box. */
.rtb-hero .rtb-rounded-image img { border-radius: 0; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }

/* Rand Info Box cards fill equal-height columns. */
.randrow-column-inner > .wp-block-rand-info-box { height: 100%; }

/* Rand Accordion uses the theme heading font. */
.wp-block-rand-accordion h3, .wp-block-rand-accordion [class*="title"] { font-family: var(--rtb-font-heading); }

/* ==========================================================================
   13. Rand plugin integration
   ========================================================================== */

/* RandPublish: popups above the sticky header; popup content uses theme typography. */
.randpublish-popup { font-family: var(--rtb-font-body); }
.randpublish-popup h1, .randpublish-popup h2, .randpublish-popup h3 { font-family: var(--rtb-font-heading); color: var(--rtb-heading); }
/* The popup is already a card – the form inside sits flat in it. */
.randpublish-popup .rcf { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }

/* Rand Contact Form: theme colours (Customizer › Rand plugins). Custom properties set
   with !important beat the inline design values, everything else stays with the plugin. */
.rtb-forms-theme .rcf {
	--rcf-accent: var(--rtb-primary) !important;
	--rcf-text: var(--rtb-heading) !important;
	--rcf-border: var(--rtb-border) !important;
	--rcf-radius: var(--rtb-radius) !important;
	font-family: var(--rtb-font-body);
}
.rtb-forms-theme .rcf button[type="submit"], .rtb-forms-theme .rcf .rcf-submit { border-radius: var(--rtb-btn-radius); }

/* Compact newsletter form in the footer (e-mail + button side by side on wide screens). */
.footer-newsletter .rcf {
	--rcf-bg: transparent !important;
	/* Colours of the footer row (white on a dark footer, dark on a light one). */
	--rcf-text: var(--frow-link, #fff) !important;
	--rcf-field-bg: color-mix(in srgb, var(--frow-link, #fff) 6%, transparent) !important;
	--rcf-border: color-mix(in srgb, var(--frow-link, #fff) 24%, transparent) !important;
	--rcf-pad: 0px !important;
	--rcf-max: 100% !important;
}
.footer-newsletter .rcf { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.footer-newsletter .rcf a { color: var(--frow-link, #fff); text-decoration: underline; }

/* ==========================================================================
   14. Core blocks in content
   ========================================================================== */
.alignleft { float: inline-start; margin-inline-end: 1.5em; margin-bottom: 1em; }
.alignright { float: inline-end; margin-inline-start: 1.5em; margin-bottom: 1em; }
.aligncenter { margin-inline: auto; text-align: center; }
.entry-content > .alignwide { margin-inline: calc(50% - min(50vw, (var(--rtb-container) + 240px) / 2) + var(--rtb-gutter)); max-width: none; }
.entry-content > .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.builder-content .entry-content > .alignfull { margin-inline: 0; width: 100%; }
.wp-block-image figcaption, .wp-caption-text { margin-top: .6em; font-size: .85em; text-align: center; opacity: .8; }
.wp-block-quote { border-inline-start-color: var(--rtb-primary); }
.wp-block-separator { border-top-width: 1px; opacity: 1; border-color: var(--rtb-border); }
.wp-block-table table { border-radius: var(--rtb-radius); overflow: hidden; }
.has-rtb-primary-color { color: var(--rtb-primary) !important; }
.has-rtb-secondary-color { color: var(--rtb-secondary) !important; }
.has-rtb-accent-color { color: var(--rtb-accent) !important; }
.has-rtb-heading-color { color: var(--rtb-heading) !important; }
.has-rtb-text-color { color: var(--rtb-text) !important; }
.has-rtb-primary-background-color { background-color: var(--rtb-primary) !important; }
.has-rtb-secondary-background-color { background-color: var(--rtb-secondary) !important; }
.has-rtb-surface-background-color { background-color: var(--rtb-surface) !important; }

/* ==========================================================================
   15. Accessibility & utilities
   ========================================================================== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 14px 22px;
	clip: auto;
	clip-path: none;
	border-radius: 10px;
	background: var(--rtb-bg);
	color: var(--rtb-primary);
	box-shadow: var(--rtb-shadow-lg);
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { position: fixed !important; }

.rtb-icon { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   16. Advanced options (Customizer)
   ========================================================================== */

/* --- Button styles (Buttons › Button style) --- */
.rtb-btn-outline :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):not(:hover) {
	background: transparent;
	border-color: currentColor;
	color: var(--rtb-btn-bg, var(--rtb-primary));
}
.rtb-btn-gradient :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]) {
	background-image: linear-gradient(120deg, var(--rtb-btn-bg, var(--rtb-primary)), var(--rtb-grad-end));
	background-size: 160% 100%;
	background-position: 0 0;
}
.rtb-btn-gradient :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):hover { background-position: 100% 0; }
.rtb-btn-soft :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):not(:hover) {
	background: color-mix(in srgb, var(--rtb-btn-bg, var(--rtb-primary)) 14%, transparent);
	color: var(--rtb-btn-bg, var(--rtb-primary));
}
.rtb-section-dark :is(.rtb-button, .wp-element-button):not(:hover) { color: var(--rtb-btn-color); }

/* --- Header effects --- */
/* Glass: the rows must be see-through for the blur to show – at most 78 % opaque. */
.rtb-header-glass .hfb-row {
	background: color-mix(in srgb, var(--row-bg) calc(min(var(--rtb-header-opacity), 78) * 1%), transparent);
	-webkit-backdrop-filter: saturate(180%) blur(var(--rtb-glass-blur));
	backdrop-filter: saturate(180%) blur(var(--rtb-glass-blur));
}
.rtb-header-shrink .site-header.is-scrolled .hfb-row--main.is-sticky { --row-h: calc(var(--rtb-header-h) * .78); }

/* Menu hover / active style */
html:not(.rtb-nav-mobile) {
	.primary-menu > li > a { transition: color .2s, background-color .2s; }
	.primary-menu > li > a:hover,
	.primary-menu > :is(.current-menu-item, .current-menu-ancestor, .current_page_parent) > a { color: var(--rtb-menu-hover, inherit); }
	:is(.rtb-menu-pill, .rtb-menu-color) .primary-menu > li > a::after { display: none; }
	.rtb-menu-pill .primary-menu > li > a:hover,
	.rtb-menu-pill .primary-menu > :is(.current-menu-item, .current-menu-ancestor, .current_page_parent) > a {
		background: color-mix(in srgb, var(--rtb-menu-hover, var(--rtb-primary)) 12%, transparent);
		color: var(--rtb-menu-hover, var(--rtb-primary));
	}
	.rtb-menu-color .primary-menu > li > a:hover,
	.rtb-menu-color .primary-menu > :is(.current-menu-item, .current-menu-ancestor, .current_page_parent) > a { color: var(--rtb-menu-hover, var(--rtb-primary)); }
}

/* Header button look */
.rtb-cta-outline .header-cta:not(:hover) { background: transparent; border-color: currentColor; color: var(--rtb-btn-bg, var(--rtb-primary)); }
.rtb-cta-pill .header-cta { border-radius: 999px; }

/* Phone logo */
.mobile-logo-link { display: none; line-height: 0; }
.mobile-logo { width: auto; height: auto; max-width: var(--rtb-logo-w); max-height: calc(var(--rtb-header-h) - 16px); }
@media (max-width: 640px) {
	.mobile-logo-link { display: block; }
	.hfb-item--logo:has(.mobile-logo-link) .site-branding :is(.custom-logo-link, .site-title) { display: none; }
}

/* Dark-mode switch */
.dark-toggle__sun { display: none; }
html[data-theme="dark"] .dark-toggle__sun { display: block; }
html[data-theme="dark"] .dark-toggle__moon { display: none; }

/* --- Social media icons --- */
.social-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-icons li { margin: 0; }
.social-icons__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rtb-social-size);
	height: var(--rtb-social-size);
	color: var(--rtb-social-color, inherit);
	text-decoration: none;
	transition: background-color .2s, color .2s, transform .2s var(--rtb-ease);
}
.social-icons__link:hover { transform: translateY(-2px); }
:is(.rtb-social-round, .rtb-social-square) .social-icons__link { background: var(--rtb-social-bg, color-mix(in srgb, currentColor 10%, transparent)); }
.rtb-social-round .social-icons__link { border-radius: 50%; }
.rtb-social-square .social-icons__link { border-radius: 10px; }
:is(.rtb-social-round, .rtb-social-square) .social-icons__link:hover { background: var(--rtb-social-bg-hover, var(--rtb-primary)); color: var(--rtb-social-color-hover, #fff) !important; }
.rtb-social-plain .social-icons__link { width: 28px; height: 28px; }
.rtb-social-plain .social-icons__link:hover { color: var(--rtb-social-color-hover, var(--rtb-primary)) !important; }
/* Icon colour: the Customizer colour wins; otherwise the colour of the area (footer = footer headings). */
.social-icons .social-icons__link { color: var(--rtb-social-color, var(--rtb-social-auto, inherit)); }
.site-footer .social-icons { --rtb-social-auto: var(--rtb-footer-heading); }

/* --- Footer --- */
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { width: auto; max-height: 44px; }

/* --- Page title area --- */
.rtb-phbg-color .page-header { background: var(--rtb-ph-bg, var(--rtb-surface)); }
.rtb-phbg-gradient .page-header { background: linear-gradient(120deg, var(--rtb-primary), var(--rtb-grad-end)); border-bottom: 0; }
.rtb-phbg-image .page-header { background: #0b1020 center / cover no-repeat; border-bottom: 0; }
.rtb-phbg-image .page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--rtb-ph-bg, #0b1020);
	opacity: calc(var(--rtb-ph-overlay) / 100);
}
:is(.rtb-phbg-gradient, .rtb-phbg-image) .page-header { color: var(--rtb-ph-color, rgba(255, 255, 255, .88)); }
:is(.rtb-phbg-gradient, .rtb-phbg-image) .page-header .page-title { color: var(--rtb-ph-color, #fff); }
:is(.rtb-phbg-gradient, .rtb-phbg-image) .page-header .breadcrumbs li { color: inherit; }
.rtb-ph-align-center .page-header { text-align: center; }
.rtb-ph-align-center .page-header .breadcrumbs ol { justify-content: center; }
.rtb-ph-align-center .page-header .page-description { margin-inline: auto; }
.page-header.page-header--plain { padding-block: calc(var(--rtb-ph-pad) * .6) 0; background: none; border-bottom: 0; color: inherit; }
.page-header--plain::before { display: none; }
.page-header--plain .page-title { color: var(--rtb-heading); }

/* --- Single post: cover header, reading progress, related posts --- */
.entry-cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(340px, 56vh, 580px);
	padding-block: 72px 48px;
	background: #0b1020 center / cover no-repeat;
	color: rgba(255, 255, 255, .88);
}
.entry-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 16, 32, .25) 0%, rgba(11, 16, 32, .95) 100%);
	opacity: calc(var(--rtb-cover-overlay) / 100 + .2);
}
.entry-cover__inner { position: relative; z-index: 1; max-width: calc(var(--rtb-narrow) + 2 * var(--rtb-gutter)); }
.entry-cover .entry-title { margin-bottom: .35em; color: #fff; font-size: var(--rtb-fs-h1); }
.entry-cover .entry-meta, .entry-cover .breadcrumbs li { color: rgba(255, 255, 255, .85); }

.reading-progress { position: fixed; top: var(--rtb-admin-bar); inset-inline: 0; z-index: 210; height: 3px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--rtb-primary), var(--rtb-secondary)); }

.related-posts { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rtb-border); }
.related-posts__title { font-size: var(--rtb-fs-h3); }
.related-posts__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important; gap: 24px; }
.related-posts .post-card__body { padding: 20px; }
.related-posts .entry-summary { display: none; }

/* --- Dark mode (Colours & dark mode) --- */
html[data-theme="dark"] {
	color-scheme: dark;
	--rtb-bg: var(--rtb-dark-bg);
	--rtb-surface: var(--rtb-dark-surface);
	--rtb-heading: var(--rtb-dark-heading);
	--rtb-text: var(--rtb-dark-text);
	--rtb-border: var(--rtb-dark-border);
	--rtb-link: color-mix(in srgb, var(--rtb-primary) 55%, #fff);
	--rtb-link-hover: #fff;
	--rtb-header-bg: var(--rtb-dark-surface);
	--rtb-header-color: var(--rtb-dark-heading);
	--rtb-submenu-bg: var(--rtb-dark-surface);
	--rtb-submenu-color: var(--rtb-dark-text);
	--rtb-field-bg: var(--rtb-dark-bg);
	--rtb-field-text: var(--rtb-dark-heading);
	--rtb-field-border: var(--rtb-dark-border);
	--rtb-ph-color: var(--rtb-dark-heading);
	--rtb-primary-soft: color-mix(in srgb, var(--rtb-primary) 22%, transparent);
	--rtb-shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
	--rtb-shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] .rtb-phbg-soft .page-header,
html[data-theme="dark"] .rtb-phbg-color .page-header { background: var(--rtb-dark-surface); }
html[data-theme="dark"] .rtb-eyebrow { color: color-mix(in srgb, var(--rtb-primary) 55%, #fff); }
html[data-theme="dark"] .rcf {
	--rcf-bg: var(--rtb-dark-surface) !important;
	--rcf-text: var(--rtb-dark-heading) !important;
	--rcf-field-bg: var(--rtb-dark-bg) !important;
	--rcf-border: var(--rtb-dark-border) !important;
}
html[data-theme="dark"] .randpublish-popup-content,
html[data-theme="dark"] .randpublish-popup-inner { color: #0f172a; }
.dark-logo-link { display: none; line-height: 0; }
.dark-logo { width: var(--rtb-logo-w); max-width: 100%; height: auto; max-height: calc(var(--rtb-header-h) - 16px); object-fit: contain; object-position: left center; }
html[data-theme="dark"] .site-branding:has(.dark-logo-link) .custom-logo-link { display: none; }
html[data-theme="dark"] .dark-logo-link { display: block; }

/* ==========================================================================
   17. Social icon styles and scroll-to-top styles (1.2)
   ========================================================================== */
.social-icons__link svg { width: var(--rtb-social-icon); height: var(--rtb-social-icon); }
.social-icons__link--facebook { --rtb-brand: #1877f2; }
.social-icons__link--instagram { --rtb-brand: #e4405f; }
.social-icons__link--linkedin { --rtb-brand: #0a66c2; }
.social-icons__link--x { --rtb-brand: #111111; }
.social-icons__link--youtube { --rtb-brand: #ff0000; }
.social-icons__link--tiktok { --rtb-brand: #111111; }
.rtb-social-outline-round .social-icons__link,
.rtb-social-outline-square .social-icons__link { border: 2px solid var(--rtb-social-bg, currentColor); background: transparent; }
.rtb-social-outline-round .social-icons__link { border-radius: 50%; }
.rtb-social-outline-square .social-icons__link { border-radius: 10px; }
:is(.rtb-social-outline-round, .rtb-social-outline-square) .social-icons__link:hover { border-color: var(--rtb-social-bg-hover, var(--rtb-primary)); background: var(--rtb-social-bg-hover, var(--rtb-primary)); color: var(--rtb-social-color-hover, #fff) !important; }
.rtb-social-solid .social-icons__link,
.rtb-social-solid-square .social-icons__link { background: var(--rtb-social-bg, var(--rtb-primary)); color: var(--rtb-social-color, #fff) !important; }
.rtb-social-solid .social-icons__link { border-radius: 50%; }
.rtb-social-solid-square .social-icons__link { border-radius: 10px; }
:is(.rtb-social-solid, .rtb-social-solid-square) .social-icons__link:hover { background: var(--rtb-social-bg-hover, var(--rtb-secondary)); color: var(--rtb-social-color-hover, var(--rtb-social-color, #fff)) !important; }
.rtb-social-brand .social-icons__link { border-radius: 50%; background: var(--rtb-brand); color: var(--rtb-social-color, #fff) !important; }
.rtb-social-brand .social-icons__link:hover { background: var(--rtb-social-bg-hover, var(--rtb-brand)); color: var(--rtb-social-color-hover, var(--rtb-social-color, #fff)) !important; filter: brightness(1.12); }
.rtb-social-brand-plain .social-icons__link:hover { color: var(--rtb-social-color-hover, var(--rtb-brand)) !important; }
.rtb-social-brand-plain .social-icons__link { width: calc(var(--rtb-social-icon) + 10px); height: calc(var(--rtb-social-icon) + 10px); color: var(--rtb-brand) !important; }
.site-footer .rtb-social-brand-plain .social-icons__link--x,
.site-footer .rtb-social-brand-plain .social-icons__link--tiktok,
.site-footer :is(.social-icons__link--x, .social-icons__link--tiktok) { --rtb-brand: #ffffff; }
.rtb-social-brand .site-footer :is(.social-icons__link--x, .social-icons__link--tiktok) { --rtb-brand: #000000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

.back-to-top { gap: 6px; }
.back-to-top__icon { width: var(--rtb-btt-icon); height: var(--rtb-btt-icon); }
.back-to-top--outline { background: var(--rtb-bg); border: 2px solid currentColor; color: var(--rtb-btt-bg, var(--rtb-primary)) !important; }
.back-to-top--outline:hover { background: var(--rtb-btt-hover, var(--rtb-btt-bg, var(--rtb-primary))); border-color: transparent; color: var(--rtb-btt-color) !important; }
.back-to-top--soft { background: color-mix(in srgb, var(--rtb-btt-bg, var(--rtb-primary)) 15%, var(--rtb-bg)); color: var(--rtb-btt-bg, var(--rtb-primary)) !important; }
.back-to-top--soft:hover { background: var(--rtb-btt-hover, var(--rtb-btt-bg, var(--rtb-primary))); color: var(--rtb-btt-color) !important; }
.back-to-top--glass {
	background: color-mix(in srgb, var(--rtb-bg) 60%, transparent);
	border: 1px solid color-mix(in srgb, var(--rtb-heading) 12%, transparent);
	color: var(--rtb-heading) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.back-to-top--glass:hover { background: var(--rtb-btt-hover, var(--rtb-btt-bg, var(--rtb-primary))); color: var(--rtb-btt-color) !important; }
.back-to-top--progress { border-radius: 50%; background: var(--rtb-bg); color: var(--rtb-btt-bg, var(--rtb-primary)) !important; }
.back-to-top--progress:hover { background: var(--rtb-btt-hover, color-mix(in srgb, var(--rtb-btt-bg, var(--rtb-primary)) 12%, var(--rtb-bg))); }
.back-to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.back-to-top__ring circle { fill: none; stroke-width: 2.5; }
.back-to-top__track { stroke: color-mix(in srgb, var(--rtb-btt-bg, var(--rtb-primary)) 18%, transparent); }
.back-to-top__progress { stroke: var(--rtb-btt-bg, var(--rtb-primary)); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.back-to-top--pill { width: auto; padding-inline: 16px 18px; border-radius: 999px; }
.back-to-top__label { font-size: .85rem; font-weight: 700; letter-spacing: .02em; }



/* ==========================================================================
   18. Contact info (Customizer › Contact info)
   ========================================================================== */
.contact-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(var(--rtb-contact-gap) * .4) var(--rtb-contact-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--rtb-contact-fs);
	font-weight: var(--rtb-contact-weight);
	line-height: 1.4;
}
.contact-info--stack,
.rtb-contactlayout-stack .contact-info { flex-direction: column; align-items: flex-start; gap: var(--rtb-contact-gap); }
.rtb-contactlayout-row .contact-info { flex-direction: row; align-items: center; gap: calc(var(--rtb-contact-gap) * .4) var(--rtb-contact-gap); }
.hfb-align-center .contact-info--stack, .menu-panel--full .contact-info { align-items: center; }
.hfb-align-right .contact-info--stack { align-items: flex-end; }
.contact-info__item { margin: 0; }
.contact-info__item a,
.contact-info__nolink {
	display: inline-flex;
	align-items: center;
	gap: var(--rtb-contact-icon-gap);
	color: var(--rtb-contact-color, inherit) !important;
	text-decoration: none;
	transition: color .2s;
}
.contact-info__item a:hover { color: var(--rtb-contact-hover, var(--rtb-contact-color, inherit)) !important; text-decoration: underline; text-underline-offset: .2em; }
:is(.contact-info__item--map-pin, .contact-info__item--clock) :is(a, .contact-info__nolink) { align-items: flex-start; }
.contact-info__label { font-weight: 700; }
.contact-info__text { min-width: 0; }

/* Icons */
.contact-info__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	color: var(--rtb-contact-icon-color, var(--rtb-contact-auto-icon, var(--rtb-primary)));
	transition: color .2s, background-color .2s, border-color .2s;
}
.contact-info__icon .rtb-icon { width: var(--rtb-contact-icon); height: var(--rtb-contact-icon); }
body:not(.rtb-contact-icons) .contact-info__icon { display: none; }
.contact-info__item a:hover .contact-info__icon { color: var(--rtb-contact-icon-hover, var(--rtb-contact-icon-color, var(--rtb-contact-auto-icon, var(--rtb-primary)))); }
:is(.rtb-contacticon-round, .rtb-contacticon-square, .rtb-contacticon-outline, .rtb-contacticon-solid, .rtb-contacticon-solid-square) .contact-info__icon { width: var(--rtb-contact-box); height: var(--rtb-contact-box); }
:is(.rtb-contacticon-round, .rtb-contacticon-outline, .rtb-contacticon-solid) .contact-info__icon { border-radius: 50%; }
:is(.rtb-contacticon-square, .rtb-contacticon-solid-square) .contact-info__icon { border-radius: 10px; }
:is(.rtb-contacticon-round, .rtb-contacticon-square) .contact-info__icon { background: var(--rtb-contact-icon-bg, color-mix(in srgb, var(--rtb-contact-icon-color, var(--rtb-contact-auto-icon, var(--rtb-primary))) 14%, transparent)); }
.rtb-contacticon-outline .contact-info__icon { border: 2px solid var(--rtb-contact-icon-bg, currentColor); }
:is(.rtb-contacticon-solid, .rtb-contacticon-solid-square) .contact-info__icon { background: var(--rtb-contact-icon-bg, var(--rtb-primary)); color: var(--rtb-contact-icon-color, #fff); }
:is(.rtb-contacticon-solid, .rtb-contacticon-solid-square) .contact-info__item a:hover .contact-info__icon { color: var(--rtb-contact-icon-hover, var(--rtb-contact-icon-color, #fff)); }
.rtb-contacticon-plain :is(.contact-info__item--map-pin, .contact-info__item--clock) .contact-info__icon { margin-top: .1em; }

@media print {
	.site-header, .site-footer, .back-to-top, .widget-area, .post-navigation, .comments-area { display: none !important; }
	body { color: #000; font-size: 12pt; }
	a { color: #000; }
}

/* ==========================================================================
   19. Footer: responsive rows, widget titles, footer menu, reveal (v2.6)
   ========================================================================== */
/* Columns on tablets / phones, alignment and order on phones, hide per device. */
@media (min-width: 641px) and (max-width: 1024px) {
	.hfb-frow.hfb-tcols-1 .hfb-frow__inner { grid-template-columns: minmax(0, 1fr); }
	.hfb-frow.hfb-tcols-2 .hfb-frow__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hfb-frow.hfb-tcols-3 .hfb-frow__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hfb-frow.hfb-tcols-4 .hfb-frow__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hfb-frow.hfb-hide-t { display: none; }
}
@media (min-width: 1025px) { .hfb-frow.hfb-hide-d { display: none; } }
@media (max-width: 640px) {
	.hfb-frow.hfb-mcols-2 .hfb-frow__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hfb-frow.hfb-hide-m { display: none; }
	.hfb-malign-left .hfb-col { align-items: flex-start !important; text-align: start !important; justify-content: flex-start !important; }
	.hfb-malign-center .hfb-col { align-items: center !important; text-align: center !important; justify-content: center !important; }
	.hfb-malign-right .hfb-col { align-items: flex-end !important; text-align: end !important; justify-content: flex-end !important; }
	.hfb-malign-center .footer-newsletter__inner { text-align: center; }
	.hfb-mreverse .hfb-col:nth-child(1) { order: 4; }
	.hfb-mreverse .hfb-col:nth-child(2) { order: 3; }
	.hfb-mreverse .hfb-col:nth-child(3) { order: 2; }
	.hfb-mreverse .hfb-col:nth-child(4) { order: 1; }
}

/* Widget titles (Footer › Titles & menu). */
.site-footer .footer-widgets-area :is(h2, h3, h4, .widget-title) {
	position: relative;
	margin-bottom: var(--rtb-fwt-gap, 16px);
	color: var(--rtb-fwt-color, var(--frow-link));
	font-size: var(--rtb-fwt-fs, 1.05rem);
	font-weight: var(--rtb-fwt-weight, 700);
	letter-spacing: var(--rtb-fwt-ls, 0);
	text-transform: none;
}
.rtb-fwt-upper .site-footer .footer-widgets-area :is(h2, h3, h4, .widget-title) { text-transform: uppercase; }
.rtb-fwtline-short .site-footer .footer-widgets-area :is(h2, h3, h4, .widget-title)::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--rtb-fwt-line, var(--rtb-primary)); }
.rtb-fwtline-short .hfb-align-center .footer-widgets-area :is(h2, h3, h4, .widget-title)::after { margin-inline: auto; }
.rtb-fwtline-short .hfb-align-right .footer-widgets-area :is(h2, h3, h4, .widget-title)::after { margin-inline-start: auto; }
.rtb-fwtline-full .site-footer .footer-widgets-area :is(h2, h3, h4, .widget-title) { padding-bottom: 10px; border-bottom: 1px solid var(--rtb-fwt-line, color-mix(in srgb, currentColor 22%, transparent)); }
.rtb-fwtline-left .site-footer .footer-widgets-area :is(h2, h3, h4, .widget-title) { padding-inline-start: 12px; border-inline-start: 3px solid var(--rtb-fwt-line, var(--rtb-primary)); }

/* Footer menu (Footer › Titles & menu). */
.site-footer .footer-menu { column-gap: var(--rtb-fm-gap, 22px); }
.site-footer .footer-menu a { color: var(--rtb-fm-color, var(--frow-color)); }
.site-footer .footer-menu a:hover { color: var(--rtb-fm-hover, var(--frow-hover)); }
.rtb-fm-upper .site-footer .footer-menu a { font-size: .9em; letter-spacing: .06em; text-transform: uppercase; }
.rtb-fmenu-list .site-footer .footer-menu { flex-direction: column; row-gap: 8px; }
:is(.rtb-fmsep-dot, .rtb-fmsep-line, .rtb-fmsep-slash):not(.rtb-fmenu-list) .site-footer .footer-menu li { display: inline-flex; align-items: center; }
:is(.rtb-fmsep-dot, .rtb-fmsep-line, .rtb-fmsep-slash):not(.rtb-fmenu-list) .site-footer .footer-menu li + li::before { margin-inline-end: var(--rtb-fm-gap, 22px); opacity: .45; }
.rtb-fmsep-dot:not(.rtb-fmenu-list) .site-footer .footer-menu li + li::before { content: "•"; }
.rtb-fmsep-slash:not(.rtb-fmenu-list) .site-footer .footer-menu li + li::before { content: "/"; }
.rtb-fmsep-line:not(.rtb-fmenu-list) .site-footer .footer-menu li + li::before { content: ""; width: 1px; height: 1em; background: currentColor; }

/* Reveal: the footer lies behind the page (sticky at the bottom, below the content). */
.rtb-reveal-on .site-content { position: relative; z-index: 1; background: var(--rtb-bg); box-shadow: 0 24px 40px -24px rgba(15, 23, 42, .45); }
.rtb-reveal-on .site-footer { position: sticky; bottom: 0; z-index: 0; }

/* ==========================================================================
   20. Header: menu & drop-down styles, logos, mobile panel (v2.7)
   ========================================================================== */
/* Menu items (Header › Menu). */
.primary-menu > li > a { padding: var(--rtb-menu-py, 10px) var(--rtb-menu-px, 14px); border-radius: var(--rtb-menu-radius, 10px); color: var(--rtb-menu-color, inherit); }
.primary-menu > li.menu-item-has-children > a { padding-inline-end: 4px; }
.primary-menu > li > a::after { inset-inline: var(--rtb-menu-px, 14px); height: var(--rtb-menu-line, 2px); }
html:not(.rtb-nav-mobile) {
	.rtb-menu-center .primary-menu > li > a::after { transform-origin: center; }
	.rtb-menu-overline .primary-menu > li > a::after { top: 2px; bottom: auto; }
	.rtb-menu-solid .primary-menu > li > a::after { display: none; }
	.rtb-menu-solid .primary-menu > li > a:hover,
	.rtb-menu-solid .primary-menu > :is(.current-menu-item, .current-menu-ancestor, .current_page_parent) > a { background: var(--rtb-menu-hover, var(--rtb-primary)); color: #fff; }
	.rtb-menu-solid .primary-menu > li:hover > .submenu-toggle { color: inherit; }
	:is(.rtb-hmsep-dot, .rtb-hmsep-line, .rtb-hmsep-slash) .primary-menu > li + li::before { opacity: .4; }
	.rtb-hmsep-dot .primary-menu > li + li::before { content: "•"; }
	.rtb-hmsep-slash .primary-menu > li + li::before { content: "/"; }
	.rtb-hmsep-line .primary-menu > li + li::before { content: ""; width: 1px; height: 1em; background: currentColor; }
}

/* Drop-down. */
.primary-menu .sub-menu { min-width: var(--rtb-sub-w, 230px); border-radius: var(--rtb-sub-radius, var(--rtb-radius)); }
.primary-menu .sub-menu a { padding-block: var(--rtb-sub-py, 9px); }
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a { background: var(--rtb-sub-hover-bg, var(--rtb-primary-soft)); }
.rtb-subshadow-none .primary-menu .sub-menu { box-shadow: none; }
.rtb-subshadow-strong .primary-menu .sub-menu { box-shadow: 0 28px 60px -16px rgba(15, 23, 42, .45); }
.rtb-subanim-fade .primary-menu .sub-menu { transform: none; }
.rtb-subanim-zoom .primary-menu .sub-menu { transform: scale(.94); transform-origin: top left; }
.rtb-subanim-none .primary-menu .sub-menu { transform: none; transition: none; }
.rtb-subsep .primary-menu .sub-menu li + li { border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.rtb-subarrow .primary-menu > li > .sub-menu { margin-top: 8px; }
.rtb-subarrow .primary-menu > li > .sub-menu::before { content: ""; position: absolute; top: -7px; inset-inline-start: 24px; width: 12px; height: 12px; border-top: 1px solid var(--rtb-border); border-left: 1px solid var(--rtb-border); background: inherit; transform: rotate(45deg); }
.rtb-subarrow .primary-menu > li > .sub-menu::after { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; } /* Keeps the hover across the gap. */

/* Logos: while the header sticks, transparent header. */
.sticky-logo-link, .transparent-logo-link { display: none; line-height: 0; }
.sticky-logo, .transparent-logo { width: var(--rtb-logo-w); max-width: 100%; height: auto; max-height: calc(var(--row-h, var(--rtb-header-h)) - 16px); object-fit: contain; object-position: left center; }
.site-header.is-scrolled .hfb-row .site-branding:has(.sticky-logo-link) :is(.custom-logo-link, .mobile-logo-link) { display: none; }
.site-header.is-scrolled .hfb-row .sticky-logo-link { display: block; }
.site-header.is-scrolled .hfb-row .site-branding :is(.custom-logo, .sticky-logo, .mobile-logo) { width: calc(var(--rtb-logo-w) * var(--rtb-logo-sticky, 100) / 100); }
.rtb-transparent-header:not(.rtb-menu-open) .site-header:not(.is-scrolled) .hfb-row .site-branding:has(.transparent-logo-link) :is(.custom-logo-link, .mobile-logo-link, .dark-logo-link) { display: none; }
.rtb-transparent-header:not(.rtb-menu-open) .site-header:not(.is-scrolled) .hfb-row .transparent-logo-link { display: block; }

/* Mobile menu panel (Header › Mobile menu panel). */
.menu-panel .mobile-menu a { font-size: var(--hfb-panel-fs, 1.08rem); }
.menu-panel--full .mobile-menu a { font-size: calc(var(--hfb-panel-fs, 1.08rem) * 1.2); }
.menu-panel .mobile-menu .current-menu-item > a { color: var(--hfb-panel-active, var(--rtb-primary)); }
body:not(.rtb-psep) .menu-panel .mobile-menu li { border-bottom: 0; }
.rtb-palign-center .menu-panel__inner { text-align: center; }
.rtb-palign-center .menu-panel .mobile-menu a { justify-content: center; }
.rtb-palign-center .menu-panel :is(.social-icons, .contact-info) { justify-content: center; align-items: center; }
.rtb-psub-open .menu-panel .mobile-menu .sub-menu { display: block; }
.rtb-psub-open .menu-panel .mobile-menu .submenu-toggle { display: none; }
.menu-panel__backdrop { background: var(--hfb-panel-backdrop, rgba(11, 16, 32, .5)); }
.menu-panel__head { margin: -8px 0 22px; max-width: 640px; margin-inline: auto; }
.menu-panel--left .menu-panel__head, .menu-panel--right .menu-panel__head, .menu-panel--full .menu-panel__head { margin-top: -44px; padding-inline-end: 56px; }
.rtb-palign-center .menu-panel__head .site-branding { align-items: center; }
.menu-panel__close-text { display: none; }
.rtb-pclose-round .menu-panel__close { border-radius: 50%; background: color-mix(in srgb, currentColor 10%, transparent); }
.rtb-pclose-square .menu-panel__close { border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 10px; }
.rtb-pclose-text .menu-panel__close { width: auto; gap: 6px; padding-inline: 12px; border-radius: 999px; background: color-mix(in srgb, currentColor 8%, transparent); font-size: .9rem; font-weight: 600; }
.rtb-pclose-text .menu-panel__close-text { display: inline; }
.rtb-panim-fade .menu-panel { transform: none; opacity: 0; }
.rtb-panim-zoom .menu-panel { transform: scale(.96); opacity: 0; }
.rtb-menu-open:is(.rtb-panim-fade, .rtb-panim-zoom) .menu-panel { transform: none; opacity: 1; }

/* --- More button styles (Buttons › Style, v2.11) --- */
/* 3D raised: a solid "edge" below, pressed on click. */
.rtb-btn-raised :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]) { box-shadow: 0 4px 0 color-mix(in srgb, var(--rtb-btn-bg, var(--rtb-primary)) 65%, #000); transition: transform .15s, box-shadow .15s, background-color .2s; }
.rtb-btn-raised :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):hover { transform: translateY(1px); box-shadow: 0 3px 0 color-mix(in srgb, var(--rtb-btn-bg, var(--rtb-primary)) 65%, #000); }
.rtb-btn-raised :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):active { transform: translateY(4px); box-shadow: 0 0 0 color-mix(in srgb, var(--rtb-btn-bg, var(--rtb-primary)) 65%, #000); }
/* Floating: a soft coloured shadow, lifts on hover. */
.rtb-btn-floating :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]) { box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--rtb-btn-bg, var(--rtb-primary)) 60%, transparent), 0 4px 8px -4px rgba(15, 23, 42, .2); transition: transform .2s, box-shadow .2s, background-color .2s; }
.rtb-btn-floating :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px color-mix(in srgb, var(--rtb-btn-bg, var(--rtb-primary)) 65%, transparent), 0 6px 12px -6px rgba(15, 23, 42, .25); }
/* Glass: see-through with blur – made for dark sections, heroes and images. */
.rtb-btn-glass :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):not(:hover) { border-color: color-mix(in srgb, currentColor 45%, transparent); background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); }
.rtb-btn-glass :is(.rtb-section-dark, .rtb-hero, .site-footer) :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):not(:hover) { color: #fff; }
/* Ghost: no border, a light tint that gets stronger on hover. */
.rtb-btn-ghost :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]) { border-color: transparent; background: color-mix(in srgb, var(--rtb-btn-bg, var(--rtb-primary)) 6%, transparent); color: var(--rtb-btn-bg, var(--rtb-primary)); }
.rtb-btn-ghost :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):hover { background: color-mix(in srgb, var(--rtb-btn-bg, var(--rtb-primary)) 16%, transparent); color: var(--rtb-btn-bg, var(--rtb-primary)); }
/* Underlined link: text button, the line grows on hover. */
.rtb-btn-link :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]) { padding-inline: 2px; border-color: transparent; border-radius: 0; background: transparent; color: var(--rtb-btn-bg, var(--rtb-primary)); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; box-shadow: none; }
.rtb-btn-link :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):hover { background: transparent; color: var(--rtb-btn-bg, var(--rtb-primary)); text-decoration-thickness: 3px; text-underline-offset: .2em; }
/* With arrow: filled, an arrow slides to the right on hover. */
.rtb-btn-arrow :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"])::after { content: "→"; display: inline-block; margin-inline-start: .1em; transition: transform .2s var(--rtb-ease); }
.rtb-btn-arrow :is(.rtb-button, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"]):hover::after { transform: translateX(4px); }
.rtb-btn-arrow input[type="submit"]::after { content: none; }

/* ==========================================================================
   21. Form fields: styles and focus effects (Forms › Designs / Style, v2.12)
   ========================================================================== */
/* Rand Contact Form follows the theme field colours, border and corners. */
.rtb-forms-theme .rcf:not(.site-footer *) { --rcf-field-bg: var(--rtb-field-bg) !important; --rcf-border: var(--rtb-field-border) !important; }
.rtb-forms-theme .rcf .rcf-control :is(input, textarea, select):not(.site-footer *) { border-width: var(--rtb-field-bw); border-radius: var(--rtb-field-radius); color: var(--rtb-field-text); }
/* Filled: tinted, a line at the bottom. */
.rtb-field-filled :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *) { border-color: transparent; border-bottom: max(2px, var(--rtb-field-bw)) solid var(--rtb-field-border); border-radius: var(--rtb-field-radius) var(--rtb-field-radius) 4px 4px; background: color-mix(in srgb, var(--rtb-field-text) 5%, var(--rtb-field-bg)); }
.rtb-field-filled :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *):focus { border-bottom-color: var(--rtb-primary); background: color-mix(in srgb, var(--rtb-primary) 5%, var(--rtb-field-bg)); }
/* Underlined: only a bottom line. */
.rtb-field-underlined :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *) { padding-inline: 2px; border-width: 0 0 max(1px, var(--rtb-field-bw)); border-radius: 0; background: transparent; }
.rtb-field-underlined :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *):focus { border-bottom-color: var(--rtb-primary); box-shadow: 0 1px 0 var(--rtb-primary); }
/* Soft: light grey, no border until focused. */
.rtb-field-soft :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *) { border-color: transparent; background: color-mix(in srgb, var(--rtb-field-text) 6%, var(--rtb-field-bg)); }
.rtb-field-soft :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *):focus { background: var(--rtb-field-bg); }
/* Pill: fully rounded (text areas get large corners). */
.rtb-field-pill :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *) { padding-inline: 1.3em; border-radius: 999px; }
.rtb-field-pill :is(textarea, .rtb-forms-theme .rcf .rcf-control textarea):not(.site-footer *) { border-radius: 22px; }
/* Shadow: white card fields. */
.rtb-field-shadow :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *) { border-color: transparent; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 18px -8px rgba(15, 23, 42, .22); }
/* Focus effects. */
.rtb-ffocus-glow :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *):focus { border-color: var(--rtb-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rtb-primary) 14%, transparent), 0 10px 24px -10px color-mix(in srgb, var(--rtb-primary) 55%, transparent); }
.rtb-ffocus-line :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *):focus { border-color: var(--rtb-primary); box-shadow: none; }
.rtb-ffocus-line.rtb-field-underlined :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea, .rtb-forms-theme .rcf .rcf-control :is(input, textarea, select)):not(.site-footer *):focus { box-shadow: 0 1px 0 var(--rtb-primary); }

/* ==========================================================================
   22. Social icons: spacing, hover effects, more styles (v2.13)
   ========================================================================== */
.social-icons { gap: var(--rtb-social-gap, 8px); }
.rtb-shover-grow .social-icons__link:hover { transform: scale(1.14); }
.rtb-shover-turn .social-icons__link:hover { transform: rotate(-10deg) scale(1.06); }
.rtb-shover-none .social-icons__link:hover { transform: none; }
/* Brand tiles: brand-coloured rounded squares. */
.rtb-social-brand-square .social-icons__link { border-radius: 26%; background: var(--rtb-brand); color: var(--rtb-social-color, #fff) !important; }
.rtb-social-brand-square .social-icons__link:hover { background: var(--rtb-social-bg-hover, var(--rtb-brand)); color: var(--rtb-social-color-hover, var(--rtb-social-color, #fff)) !important; filter: brightness(1.12); }
/* Brand outline: brand-coloured ring and icon, filled on hover. */
.rtb-social-brand-outline .social-icons__link { border: 2px solid var(--rtb-brand); border-radius: 50%; color: var(--rtb-brand) !important; }
.rtb-social-brand-outline .social-icons__link:hover { background: var(--rtb-brand); color: #fff !important; }
.site-footer .rtb-social-brand-outline :is(.social-icons__link--x, .social-icons__link--tiktok), .rtb-social-brand-outline .site-footer :is(.social-icons__link--x, .social-icons__link--tiktok) { --rtb-brand: #ffffff; }
.rtb-social-brand-outline .site-footer :is(.social-icons__link--x, .social-icons__link--tiktok):hover { color: #000 !important; }
/* Glass: see-through with blur – made for dark rows, heroes and images. */
.rtb-social-glass .social-icons__link { border: 1px solid color-mix(in srgb, currentColor 40%, transparent); border-radius: 50%; background: color-mix(in srgb, currentColor 12%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rtb-social-glass .social-icons__link:hover { background: var(--rtb-social-bg-hover, color-mix(in srgb, currentColor 24%, transparent)); }
/* Floating: white circles with a soft shadow, brand colour on hover. */
.rtb-social-floating .social-icons__link { border-radius: 50%; background: var(--rtb-social-bg, #fff); color: var(--rtb-social-color, #1e293b) !important; box-shadow: 0 8px 18px -8px rgba(15, 23, 42, .35), 0 1px 3px rgba(15, 23, 42, .12); }
.rtb-social-floating .social-icons__link:hover { color: var(--rtb-social-color-hover, var(--rtb-brand)) !important; box-shadow: 0 12px 22px -8px rgba(15, 23, 42, .4), 0 2px 4px rgba(15, 23, 42, .12); }
/* Gradient: primary → secondary. */
.rtb-social-gradient .social-icons__link { border-radius: 50%; background: linear-gradient(135deg, var(--rtb-social-bg, var(--rtb-primary)), var(--rtb-secondary)); color: var(--rtb-social-color, #fff) !important; }
.rtb-social-gradient .social-icons__link:hover { background: linear-gradient(135deg, var(--rtb-secondary), var(--rtb-social-bg-hover, var(--rtb-primary))); color: var(--rtb-social-color-hover, #fff) !important; }

/* ==========================================================================
   23. Scroll to top: more styles, appearance (v2.14)
   ========================================================================== */
.back-to-top--gradient { background: linear-gradient(135deg, var(--rtb-btt-bg, var(--rtb-primary)), var(--rtb-secondary)); }
.back-to-top--gradient:hover { background: linear-gradient(135deg, var(--rtb-secondary), var(--rtb-btt-hover, var(--rtb-btt-bg, var(--rtb-primary)))); }
.back-to-top--floating { background: var(--rtb-bg); color: var(--rtb-btt-bg, var(--rtb-primary)) !important; box-shadow: 0 14px 28px -10px rgba(15, 23, 42, .4), 0 3px 8px rgba(15, 23, 42, .12); }
.back-to-top--floating:hover { background: var(--rtb-btt-hover, var(--rtb-btt-bg, var(--rtb-primary))); color: var(--rtb-btt-color) !important; }
.back-to-top--dark { background: var(--rtb-btt-bg, #0f172a); }
.back-to-top--dark:hover { background: var(--rtb-btt-hover, var(--rtb-primary)); }
.back-to-top--minimal { background: transparent; color: var(--rtb-btt-bg, var(--rtb-primary)) !important; box-shadow: none; }
.back-to-top--minimal:hover { background: var(--rtb-btt-hover, color-mix(in srgb, var(--rtb-btt-bg, var(--rtb-primary)) 12%, transparent)); }
/* How it appears (the default "Slide up" is the base rule). */
.rtb-bttanim-fade .back-to-top:not(.is-visible) { transform: none; }
.rtb-bttanim-zoom .back-to-top:not(.is-visible) { transform: scale(.4); }
.rtb-bttanim-zoom .back-to-top { transition: opacity .3s var(--rtb-ease), transform .45s cubic-bezier(.2, .9, .3, 1.3), visibility .3s, background-color .2s; }
.rtb-bttanim-side .back-to-top:not(.is-visible) { transform: translateX(calc(var(--rtb-btt-size) + var(--rtb-btt-x))); }
.rtb-bttanim-side.rtb-btt-left .back-to-top:not(.is-visible) { transform: translateX(calc(-1 * (var(--rtb-btt-size) + var(--rtb-btt-x)))); }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: opacity .2s, visibility .2s; transform: none !important; } }

/* ==========================================================================
   24. Blog: more layouts, hover effects, alignment (v2.15)
   ========================================================================== */
/* Magazine: the first post is large (image left, text right), the others in the grid. */
.post-list--magazine { display: grid; grid-template-columns: repeat(var(--rtb-blog-cols), minmax(0, 1fr)); gap: 32px; }
@media (min-width: 641px) {
	.post-list--magazine .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
	.post-list--magazine .post-card:first-child:not(.has-post-thumbnail) { grid-template-columns: minmax(0, 1fr); }
	.post-list--magazine .post-card:first-child .entry-thumbnail { aspect-ratio: auto; min-height: 100%; }
	.post-list--magazine .post-card:first-child .post-card__body { justify-content: center; padding: clamp(26px, 4vw, 48px); }
	.post-list--magazine .post-card:first-child .entry-title { font-size: var(--rtb-fs-h2); }
}
/* Text on image: the image fills the card, title and details on a dark gradient. */
.post-list--overlay { display: grid; grid-template-columns: repeat(var(--rtb-blog-cols), minmax(0, 1fr)); gap: 24px; }
.post-list--overlay .post-card { position: relative; display: grid; border: 0; background: color-mix(in srgb, var(--rtb-primary) 85%, #000); }
.post-list--overlay .post-card > * { grid-area: 1 / 1; }
.post-list--overlay .post-card .entry-thumbnail { height: 100%; }
.post-list--overlay .post-card__body { position: relative; z-index: 1; align-self: end; padding: 70px 24px 24px; background: linear-gradient(180deg, transparent, rgba(8, 11, 24, .88)); color: rgba(255, 255, 255, .85); }
.post-list--overlay .post-card:not(.has-post-thumbnail) .post-card__body { min-height: 260px; background: none; }
.post-list--overlay .post-card .entry-title a, .post-list--overlay .post-card .entry-meta, .post-list--overlay .post-card .read-more { color: #fff; }
.post-list--overlay .post-card .entry-summary { display: none; }
.post-list--overlay .post-card .read-more { margin-top: 10px; }
/* Masonry: columns of different heights. */
.post-list--masonry { columns: var(--rtb-blog-cols); column-gap: 32px; }
.post-list--masonry .post-card { width: 100%; margin-bottom: 32px; break-inside: avoid; }
/* Minimal: no card box – image with rounded corners and text below. */
.post-list--minimal { display: grid; grid-template-columns: repeat(var(--rtb-blog-cols), minmax(0, 1fr)); gap: 44px 32px; }
.post-list--minimal .post-card { overflow: visible; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; }
.post-list--minimal .post-card .entry-thumbnail { border-radius: calc(var(--rtb-radius) + 4px); }
.post-list--minimal .post-card__body { padding: 18px 0 0; }
/* Next to a sidebar the column setting is a maximum (as for the cards grid). */
@media (min-width: 1025px) {
	:is(.rtb-sidebar-right, .rtb-sidebar-left) :is(.post-list--magazine, .post-list--overlay, .post-list--minimal) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
	:is(.rtb-sidebar-right, .rtb-sidebar-left) .post-list--masonry { columns: 280px var(--rtb-blog-cols); }
}
/* Hover effects. */
.rtb-bloghover-zoom .post-card:hover, .rtb-bloghover-none .post-card:hover, .post-list--minimal .post-card:hover { transform: none; }
.rtb-bloghover-zoom .post-card:hover .entry-thumbnail img { transform: scale(1.08); }
.rtb-bloghover-none .post-card:hover { border-color: var(--rtb-border); box-shadow: none; }
.rtb-bloghover-none .post-card:hover .entry-thumbnail img { transform: none; }
/* Centred text. */
.rtb-blogalign-center .post-list .post-card__body { align-items: center; text-align: center; }
.rtb-blogalign-center .post-list .entry-meta { justify-content: center; }

/* ==========================================================================
   25. Layout: Framed site, more card styles (v2.16)
   ========================================================================== */
/* Framed: the page floats on the light surface with rounded corners. */
.rtb-layout-framed { background: var(--rtb-surface); }
.rtb-layout-framed .site {
	max-width: calc(var(--rtb-container) + 2 * var(--rtb-gutter) + 80px);
	min-height: calc(100vh - 48px);
	margin: 24px auto;
	overflow: clip;
	border-radius: calc(var(--rtb-radius) + 10px);
	background: var(--rtb-bg);
	box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .3);
}
@media (max-width: 640px) { .rtb-layout-framed .site { margin: 0; border-radius: 0; box-shadow: none; } }
/* Card styles: strong outline, lifted. */
.rtb-cards-outline :is(.post-card, .widget-area .widget) { border-width: 2px; border-color: color-mix(in srgb, var(--rtb-heading) 20%, transparent); }
.rtb-cards-lifted :is(.post-card, .widget-area .widget) { border-color: transparent; box-shadow: var(--rtb-shadow-lg); }
.rtb-cards-lifted .post-card:hover { box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35); }

/* ==========================================================================
   26. Page title area: more backgrounds, bottom shapes, accent line (v2.17)
   ========================================================================== */
.rtb-phbg-mesh .page-header { border-bottom: 0; background: radial-gradient(60% 90% at 12% 20%, color-mix(in srgb, var(--rtb-secondary) 80%, transparent), transparent 70%), radial-gradient(55% 100% at 88% 25%, color-mix(in srgb, var(--rtb-accent) 55%, transparent), transparent 70%), radial-gradient(80% 100% at 50% 110%, var(--rtb-primary), transparent 75%), var(--rtb-ph-bg, var(--rtb-primary)); }
.rtb-phbg-dark .page-header { border-bottom: 0; background: radial-gradient(900px 400px at 85% -20%, color-mix(in srgb, var(--rtb-primary) 45%, transparent), transparent 70%), radial-gradient(700px 300px at 0% 120%, color-mix(in srgb, var(--rtb-secondary) 25%, transparent), transparent 70%), var(--rtb-ph-bg, #0b1020); }
.rtb-phbg-pattern .page-header { background: radial-gradient(color-mix(in srgb, var(--rtb-primary) 22%, transparent) 1.2px, transparent 1.6px) 0 0 / 18px 18px, var(--rtb-ph-bg, var(--rtb-surface)); }
.rtb-phbg-minimal .page-header { background: var(--rtb-ph-bg, var(--rtb-bg)); }
:is(.rtb-phbg-mesh, .rtb-phbg-dark) .page-header { color: var(--rtb-ph-color, rgba(255, 255, 255, .88)); }
:is(.rtb-phbg-mesh, .rtb-phbg-dark) .page-header .page-title { color: var(--rtb-ph-color, #fff); }
:is(.rtb-phbg-mesh, .rtb-phbg-dark) .page-header .breadcrumbs :is(li, a) { color: inherit; }
/* Accent line under the title. */
.rtb-ph-accent .page-header:not(.page-header--plain) .page-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .35em; border-radius: 4px; background: var(--rtb-ph-color, var(--rtb-primary)); }
:is(.rtb-phbg-gradient, .rtb-phbg-mesh, .rtb-phbg-dark, .rtb-phbg-image).rtb-ph-accent .page-header .page-title::after { background: var(--rtb-ph-color, #fff); }
.rtb-ph-align-center.rtb-ph-accent .page-header .page-title::after { margin-inline: auto; }
/* Bottom shapes: the page background cuts into the band. */
body:not(.rtb-phshape-none) .page-header:not(.page-header--plain) { padding-bottom: calc(var(--rtb-ph-pad) + clamp(24px, 4vw, 56px)); border-bottom: 0; }
body:not(.rtb-phshape-none) .page-header:not(.page-header--plain)::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; z-index: 1; height: clamp(24px, 4vw, 56px); background: var(--rtb-bg); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.rtb-phshape-wave .page-header::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 200 70 400 0 600 26 S 1000 56 1200 20 V60 H0Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 200 70 400 0 600 26 S 1000 56 1200 20 V60 H0Z'/%3E%3C/svg%3E"); }
.rtb-phshape-curve .page-header::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q 600 -30 1200 60Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q 600 -30 1200 60Z'/%3E%3C/svg%3E"); }
.rtb-phshape-angle .page-header::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 L1200 0 V60Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 L1200 0 V60Z'/%3E%3C/svg%3E"); }

/* Dark header background (v2.18): the light "Logo for dark mode" replaces the normal logo in the header rows. */
.rtb-dark-header .site-header .hfb-row .site-branding:has(.dark-logo-link) .custom-logo-link { display: none; }
.rtb-dark-header .site-header .hfb-row .dark-logo-link { display: block; }
.site-header.is-scrolled .hfb-row .site-branding:has(.sticky-logo-link) .dark-logo-link { display: none; }
@media (max-width: 640px) {
	.hfb-item--logo:has(.mobile-logo-link) .site-branding .dark-logo-link { display: none; }
}

/* Header designs review (v2.18) */
/* Dark glass: up to 90 % opaque, so it stays dark over a light page instead of turning grey. */
.rtb-dark-header.rtb-header-glass .hfb-row { background: color-mix(in srgb, var(--row-bg) calc(min(var(--rtb-header-opacity), 90) * 1%), transparent); }
/* Dark header: the primary colour is too dark for active / hover menu text, so it is lightened. */
html:not(.rtb-nav-mobile) :is(.rtb-dark-header.rtb-menu-pill, .rtb-dark-header.rtb-menu-color) .site-header .hfb-row .primary-menu > li > a:hover,
html:not(.rtb-nav-mobile) :is(.rtb-dark-header.rtb-menu-pill, .rtb-dark-header.rtb-menu-color) .site-header .hfb-row .primary-menu > :is(.current-menu-item, .current-menu-ancestor, .current_page_parent) > a { color: var(--rtb-menu-hover, color-mix(in srgb, var(--rtb-primary) 40%, #fff)); }
html:not(.rtb-nav-mobile) .rtb-dark-header.rtb-menu-pill .site-header .hfb-row .primary-menu > :is(li:hover, .current-menu-item, .current-menu-ancestor, .current_page_parent) > a { background: color-mix(in srgb, var(--rtb-menu-hover, var(--rtb-primary)) 30%, transparent); }
/* Contact info in a header row on phones: one compact line – the address as a map icon, opening hours hidden. */
@media (max-width: 640px) {
	.site-header .hfb-row .contact-info { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
	.site-header .hfb-row .contact-info__item--clock { display: none; }
	.rtb-contact-icons .site-header .hfb-row .contact-info__item--map-pin .contact-info__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Light footer background (v2.19): primary colour on hover (no own hover colour) and the normal logo instead of a white footer logo. */
.rtb-light-footer-hover .site-footer { --rtb-footer-hover: var(--rtb-primary); }
.footer-logo--on-light { display: none; }
.rtb-light-footer .site-footer .footer-logo--on-light { display: inline-block; }
.rtb-light-footer .site-footer .footer-logo:has(+ .footer-logo--on-light) { display: none; }
.rtb-light-footer-contact .site-footer { --rtb-contact-color: initial; --rtb-contact-hover: initial; }
.rtb-light-footer-cicon .site-footer { --rtb-contact-icon-color: initial; --rtb-contact-icon-hover: initial; }
/* Dark and coloured footers: newsletter button edge and required mark stay visible. */
body:not(.rtb-light-footer) .site-footer .footer-newsletter :is(button, [type="submit"]) { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
body:not(.rtb-light-footer) .site-footer .rcf-req { color: color-mix(in srgb, var(--rtb-primary) 35%, #fff); }
/* Scroll to top over a dark / coloured footer (v2.19). */
.back-to-top.is-over-footer { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), var(--rtb-shadow-md); }

/* Contact info in a header row (v2.20): icons, their backgrounds and the gaps stay small so the row stays slim. */
.site-header .hfb-row .contact-info__icon .rtb-icon { width: min(var(--rtb-contact-icon), 15px); height: min(var(--rtb-contact-icon), 15px); }
body:is(.rtb-contacticon-round, .rtb-contacticon-square, .rtb-contacticon-outline, .rtb-contacticon-solid, .rtb-contacticon-solid-square) .site-header .hfb-row .contact-info__icon { width: min(var(--rtb-contact-box), 24px); height: min(var(--rtb-contact-box), 24px); }
.site-header .hfb-row .contact-info__item :is(a, .contact-info__nolink) { gap: min(var(--rtb-contact-icon-gap), 8px); }
.site-header .hfb-row .contact-info { column-gap: min(var(--rtb-contact-gap), 20px); }
@media (max-width: 640px) {
	body:is(.rtb-contacticon-round, .rtb-contacticon-square, .rtb-contacticon-outline, .rtb-contacticon-solid, .rtb-contacticon-solid-square) .site-header .hfb-row .contact-info__icon { width: 22px; height: 22px; }
	.site-header .hfb-row .contact-info { column-gap: 12px; }
}
/* Address / hours (may be several lines, aligned to the top): the first line sits in the middle of a boxed icon. */
body:is(.rtb-contacticon-round, .rtb-contacticon-square, .rtb-contacticon-outline, .rtb-contacticon-solid, .rtb-contacticon-solid-square) :is(.contact-info__item--map-pin, .contact-info__item--clock) .contact-info__text { padding-top: max(0px, calc((var(--rtb-contact-box) - 1.4em) / 2)); }
body:is(.rtb-contacticon-round, .rtb-contacticon-square, .rtb-contacticon-outline, .rtb-contacticon-solid, .rtb-contacticon-solid-square) .site-header .hfb-row :is(.contact-info__item--map-pin, .contact-info__item--clock) .contact-info__text { padding-top: max(0px, calc((min(var(--rtb-contact-box), 24px) - 1.4em) / 2)); }
/* Contact icons in the primary colour on a dark row / footer (v2.20): lightened so they stay visible (only while no own icon colour is set). */
.rtb-dark-topbar .site-header .hfb-row--top .contact-info,
.rtb-dark-header .site-header :is(.hfb-row--main, .hfb-row--bottom) .contact-info,
.rtb-dark-footer .site-footer .contact-info { --rtb-contact-auto-icon: color-mix(in srgb, var(--rtb-primary) 60%, #fff); }
/* Phones: the address in a header row is only a map icon – give it a finger-sized tap area. */
@media (max-width: 640px) {
	.rtb-contact-icons .site-header .hfb-row .contact-info__item--map-pin a { justify-content: center; min-width: 28px; min-height: 28px; }
}
/* Tablets: a header row has no room for the opening hours (they stay in the footer and the menu panel) – unless they are set to show only in the header. */
@media (max-width: 1024px) {
	body:not(.rtb-hours-header-only) .site-header .hfb-row .contact-info__item--clock { display: none; }
}
/* Tablets: a little tighter in header rows so address, phone and e-mail fit on one line next to menu and icons. */
@media (min-width: 641px) and (max-width: 1024px) {
	.site-header .hfb-row .contact-info { column-gap: min(var(--rtb-contact-gap), 14px); }
	.site-header .hfb-row .contact-info__item :is(a, .contact-info__nolink) { gap: min(var(--rtb-contact-icon-gap), 6px); }
	body:is(.rtb-contacticon-round, .rtb-contacticon-square, .rtb-contacticon-outline, .rtb-contacticon-solid, .rtb-contacticon-solid-square) .site-header .hfb-row .contact-info__icon { width: 22px; height: 22px; }
}
@media (max-width: 640px) {
	.site-header .hfb-row .contact-info { column-gap: 10px; }
	.rtb-contact-icons .site-header .hfb-row .contact-info__item--map-pin a { min-width: 24px; min-height: 24px; }
	body:is(.rtb-contacticon-round, .rtb-contacticon-square, .rtb-contacticon-outline, .rtb-contacticon-solid, .rtb-contacticon-solid-square) .site-header .hfb-row .contact-info__icon { width: 20px; height: 20px; }
}
/* Only a centre element in a row: it gets the full width (no gaps for the empty side slots). */
.hfb-row__inner:has(> .hfb-slot--left.is-empty):has(> .hfb-slot--right.is-empty):not(:has(> .hfb-slot--center.is-empty)) { display: flex; justify-content: center; }
.hfb-row__inner:has(> .hfb-slot--left.is-empty):has(> .hfb-slot--right.is-empty):not(:has(> .hfb-slot--center.is-empty)) > :is(.hfb-slot--left, .hfb-slot--right) { display: none; }
.hfb-row__inner:has(> .hfb-slot--left.is-empty):has(> .hfb-slot--right.is-empty) > .hfb-slot--center { min-width: 0; max-width: 100%; }
/* Top row (v2.21): unreadable contact colours fall back to the text colour of the top bar. */
.rtb-topbar-ctext-auto .site-header .hfb-row--top .contact-info { --rtb-contact-color: initial; --rtb-contact-hover: initial; }
.rtb-topbar-cicon-text .site-header .hfb-row--top .contact-info { --rtb-contact-icon-color: var(--rtb-topbar-color); --rtb-contact-icon-hover: var(--rtb-topbar-color); }
/* Mobile menu panel (v2.22): dark panel – light logo in the head, readable current page; unreadable contact colours fall back to the panel text colour. */
.rtb-dark-panel .menu-panel .site-branding:has(.dark-logo-link) .custom-logo-link { display: none; }
.rtb-dark-panel .menu-panel .dark-logo-link { display: block; }
.rtb-dark-panel .menu-panel .mobile-menu .current-menu-item > a { color: var(--hfb-panel-active, color-mix(in srgb, var(--rtb-primary) 45%, #fff)); }
.rtb-panel-ctext-auto .menu-panel .contact-info { --rtb-contact-color: initial; --rtb-contact-hover: initial; }
.rtb-panel-cicon-text .menu-panel .contact-info { --rtb-contact-icon-color: var(--hfb-panel-color, currentColor); --rtb-contact-icon-hover: var(--hfb-panel-color, currentColor); }
/* Slide-in / full-screen panel: the logo row keeps room for the close button (also with a wide logo). */
.menu-panel:not(.menu-panel--dropdown) .menu-panel__head { box-sizing: border-box; padding-inline-end: 52px; }
.rtb-palign-center .menu-panel:not(.menu-panel--dropdown) .menu-panel__head { padding-inline: 52px; }
.menu-panel:not(.menu-panel--dropdown) .menu-panel__head :is(.custom-logo, .dark-logo, .mobile-logo) { max-width: 100%; }
.rtb-pclose-text .menu-panel:not(.menu-panel--dropdown) .menu-panel__head { padding-inline-end: 112px; }
.rtb-pclose-text.rtb-palign-center .menu-panel:not(.menu-panel--dropdown) .menu-panel__head { padding-inline: 112px; }
.menu-panel:not(.menu-panel--dropdown) .menu-panel__head .site-branding, .menu-panel:not(.menu-panel--dropdown) .menu-panel__head :is(.custom-logo-link, .dark-logo-link) { max-width: 100%; min-width: 0; }
/* Dark / coloured panel: buttons in the primary colour keep a visible edge. */
.rtb-dark-panel .menu-panel :is(.menu-panel__item--button, .menu-panel__item--button2) :is(a, button), .rtb-dark-panel .menu-panel .search-form :is(button, [type="submit"]) { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
/* Footer elements shown only on some devices (v2.23; same breakpoints as the footer rows). */
@media (min-width: 1025px) { .site-footer .hfb-vhide-d { display: none !important; } }
@media (min-width: 641px) and (max-width: 1024px) { .site-footer .hfb-vhide-t { display: none !important; } }
@media (max-width: 640px) { .site-footer .hfb-vhide-m { display: none !important; } }
.rtb-light-footer .site-footer .rcf-req { color: color-mix(in srgb, var(--rtb-primary) 72%, #000); }

/* Dark mode (v2.24 review): the primary colour as TEXT on a dark background is lightened. --rtb-primary-text is
   resolved on <html>; inside the listed elements --rtb-primary points to it, so only their text / outline changes
   (text set to e.g. white keeps its colour, filled buttons keep theirs). */
html[data-theme="dark"] { --rtb-primary-text: color-mix(in srgb, var(--rtb-primary) 55%, #fff); }
html[data-theme="dark"] :is(.post-navigation .nav-label, .breadcrumbs, .entry-meta, .post-card .entry-title, .has-rtb-primary-color, .rand-ib__more:not(.rand-ib__more--button), .rand-btn--outline:not(:hover), .rand-btn--text:not(:hover), .rand-btn--link:not(:hover)) { --rtb-primary: var(--rtb-primary-text); }
html[data-theme="dark"] .has-rtb-primary-color { color: var(--rtb-primary-text) !important; }
html[data-theme="dark"] .rcf .rcf-drop__text { --rcf-accent: var(--rtb-primary-text) !important; }
/* Rand accordion: its default light header turns dark (a header colour set in the block stays). */
html[data-theme="dark"] .rand-acc .rand-acc__header { background: var(--rtb-dark-surface); }

/* Starter template "Web Design 2": quote, prices and dark bands (classes used by its pages). */
.rtb-wd2-hero h1 { font-size: calc(var(--rtb-fs-h1) * 1.08); }
.rtb-wd2-hero .rtb-rounded-image img { border-radius: 0; }
.rtb-transparent-header .rtb-wd2-hero:first-child { padding-top: calc(var(--rtb-header-h) + 72px) !important; }
.rtb-wd2-quote-mark { margin: 0 0 -.3em; font-family: var(--rtb-font-heading); font-size: clamp(4.5rem, 9vw, 6.5rem); line-height: 1; color: var(--rtb-primary); }
.rtb-wd2-quote { font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.45; font-style: italic; }
.rtb-wd2-price { margin: .05em 0 .25em; font-size: clamp(2rem, 3.2vw, 2.5rem); }
.rtb-wd2-rating { font-size: .95em; }
.rtb-wd2-work-title { margin: 1em 0 .25em; }
.rtb-wd2-dark .rtb-eyebrow { color: var(--rtb-accent); }
html[data-theme="dark"] .rtb-wd2-quote-mark { color: var(--rtb-primary-text); }
/* RandRow: a row with a 2- or 3-column tablet grid still stacks on phones when its phone layout is "stack". */
@media (max-width: 767px) {
	.randrow-row:is(.randrow-tablet-layout-two-grid, .randrow-tablet-layout-three-grid).randrow-mobile-layout-stack { grid-template-columns: minmax(0, 1fr) !important; }
}
/* Dark mode: menu hover / active colours use the lighter primary, so they stay readable on the dark header. */
html[data-theme="dark"] :is(.site-header .primary-menu, .menu-panel .mobile-menu) { --rtb-primary: var(--rtb-primary-text); }
