/* ==========================================================================
   Rahvan Tour – inner pages: tours archive, blog, single post.
   Loaded only on those templates (inc/pages.php). Scoped under .rv.
   ========================================================================== */

.rv.rv-inner { background: var(--rv-bg-soft); }

/* 1. Hero
   ------------------------------------------------------------------------ */
.rv .rv-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: clamp(1.5rem, 1rem + 2.4vw, 3rem) clamp(4rem, 3.2rem + 3vw, 6rem);
	background: radial-gradient(60% 120% at 88% -10%, rgb(232 163 61 / 30%), transparent 60%), radial-gradient(52% 90% at 0% 100%, rgb(31 96 120 / 60%), transparent 65%), linear-gradient(160deg, #0B4458 0%, #022C3C 58%, #011E2A 100%); }
.rv .rv-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rv .rv-hero__bg::before { content: ""; position: absolute; inset: 0; opacity: .6; background-image: radial-gradient(rgb(255 255 255 / 11%) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 62%); mask-image: linear-gradient(200deg, #000 0%, transparent 62%); }
.rv .rv-hero__glow { position: absolute; inset-inline-start: -8%; top: -40%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(232 163 61 / 20%), transparent 62%); }
.rv .rv-hero__hills { position: absolute; inset-inline: 0; bottom: 20px; width: 100%; height: clamp(70px, 11vw, 150px); max-width: none; color: rgb(255 255 255 / 7%); }
.rv .rv-hero__road { display: none; }
.rv .rv-hero__in { position: relative; }
.rv .rv-crumbs { max-width: 100%; }
/* v41.5 — one line on every screen: a glass pill that scrolls sideways when the trail is long (never «…» or a second line) */
.rv .rv-crumbs ol { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 2px; max-width: 100%; margin: 0; padding: 5px 12px; list-style: none; font-size: var(--rv-fs-xs); line-height: 1.7; white-space: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 14px; background: rgb(255 255 255 / 7%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 11%); backdrop-filter: blur(8px); }
.rv .rv-crumbs ol.has-l { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 26px), transparent); }
.rv .rv-crumbs ol.has-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
.rv .rv-crumbs ol.has-l.has-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); }
.rv .rv-crumbs ol::-webkit-scrollbar { display: none; }
.rv .rv-crumbs li { display: inline-flex; flex: none; align-items: center; gap: 2px; margin: 0; color: rgb(255 255 255 / 68%); }
.rv .rv-crumbs li > a, .rv .rv-crumbs li > span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.rv .rv-crumbs li + li::before { content: ""; flex: none; width: 14px; height: 14px; opacity: .55; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6 8.5 12l6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6 8.5 12l6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.rv .rv-crumbs li:first-child > a::before, .rv .rv-crumbs li:first-child > span::before { content: ""; flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9.5h13V10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9.5h13V10'/%3E%3C/svg%3E") center / contain no-repeat; }
.rv .rv-crumbs a { color: rgb(255 255 255 / 78%); text-decoration: none; }
.rv .rv-crumbs a:hover { color: #fff; background: rgb(255 255 255 / 10%); }
.rv .rv-crumbs li[aria-current] span { color: #F7D08A; font-weight: 700; }
.rv .rv-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(1rem, .6rem + 1.4vw, 1.75rem); font-size: var(--rv-fs-sm); font-weight: 700; color: #F7D08A; }
.rv .rv-hero__eyebrow::before { content: ""; width: 1.5rem; height: 2px; border-radius: 2px; background: var(--rv-accent); }
.rv .rv-hero__title { margin-top: .35rem; font-size: clamp(1.5rem, 1.15rem + 2vw, 2.6rem); font-weight: 800; line-height: 1.45; color: #fff; max-width: 26ch; text-wrap: balance; }
.rv .rv-hero--post .rv-hero__title { max-width: 30ch; font-size: clamp(1.4rem, 1.1rem + 1.7vw, 2.3rem); }
.rv .rv-hero__lead { margin-top: .6rem; max-width: 62ch; font-size: var(--rv-fs-lg); line-height: 2; color: rgb(255 255 255 / 84%); }
.rv .rv-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; }
.rv .rv-hero__facts li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: var(--rv-fs-xs); font-weight: 600; color: rgb(255 255 255 / 92%); background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 14%); backdrop-filter: blur(4px); }
.rv .rv-hero__facts svg { width: 16px; height: 16px; color: #F2C06A; flex: none; }

/* 2. «Sheet» that carries the page body over the hero
   ------------------------------------------------------------------------ */
.rv .rv-arch, .rv .rv-post { position: relative; z-index: 1; }
.rv .rv-arch { margin-top: -28px; padding-block: clamp(1.25rem, 1rem + 1.2vw, 2rem) clamp(2.5rem, 2rem + 2.5vw, 4.5rem); border-radius: 28px 28px 0 0; background: var(--rv-bg-soft); }
.rv .rv-arch__notices:empty { display: none; }
.rv .rv-arch__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 1rem; }
.rv .rv-arch__count { margin-bottom: .85rem; font-size: var(--rv-fs-sm); color: var(--rv-muted); }

/* chips: one row that scrolls sideways on small screens */
.rv .rv-chips { flex: 1 1 320px; min-width: 0; margin-inline: calc(var(--rv-gutter) * -1); padding-inline: var(--rv-gutter); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.rv .rv-chips::-webkit-scrollbar { display: none; }
.rv .rv-chips ul { display: flex; gap: 8px; width: max-content; margin: 0; padding: 4px 0; list-style: none; }
.rv .rv-chips li { margin: 0; scroll-snap-align: start; }
.rv .rv-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: var(--rv-fs-sm); font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--rv-ink); background: #fff; border: 1px solid var(--rv-line); box-shadow: var(--rv-shadow-sm); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.rv .rv-chips a:hover { border-color: var(--rv-accent); transform: translateY(-1px); }
.rv .rv-chips a span { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--rv-muted); background: var(--rv-bg-soft); }
.rv .rv-chips a.is-on { color: #fff; background: var(--rv-primary); border-color: var(--rv-primary); }
.rv .rv-chips a.is-on span { color: var(--rv-ink); background: var(--rv-accent); }

.rv .rv-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.rv .rv-sort__open { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; font-size: var(--rv-fs-sm); font-weight: 600; color: var(--rv-ink); background: #fff; border: 1px solid var(--rv-line); cursor: pointer; }
.rv .rv-sort__open input { width: 18px; height: 18px; margin: 0; accent-color: var(--rv-primary); }
.rv .rv-sort__open:has(input:checked) { border-color: var(--rv-accent); background: var(--rv-accent-50); }
.rv .rv-sort__sel { position: relative; display: inline-flex; align-items: center; }
.rv .rv-sort__sel svg { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--rv-muted); pointer-events: none; }
.rv .rv-sort select { height: 42px; min-width: 190px; padding-block: 0; padding-inline: 42px 34px; border-radius: 999px; border: 1px solid var(--rv-line); background-color: #fff; font-family: var(--rv-font); font-size: var(--rv-fs-sm); font-weight: 700; color: var(--rv-ink); box-shadow: var(--rv-shadow-sm); cursor: pointer; }
.rv .rv-sort select:focus-visible, .rv .rv-sort__open:focus-within { outline: 0; box-shadow: var(--rv-focus); }

/* 3. Tour grid (cards come from tcard.css)
   ------------------------------------------------------------------------ */
.rv .rv-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr)); gap: clamp(1rem, .6rem + 1.4vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.rv .rv-tgrid > li { display: flex; margin: 0; min-width: 0; }
.rv .rv-tgrid .rv-tcard { width: 100%; height: 100%; }
.rv .rv-tcard--past .rv-tcard__img { filter: saturate(.55); }
.rv .rv-tcard--past .rv-tcard__cta { opacity: .75; }

.rv .rv-pager { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.rv .rv-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rv .rv-pager li { margin: 0; }
.rv .rv-pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 14px; font-weight: 700; text-decoration: none; color: var(--rv-ink); background: #fff; border: 1px solid var(--rv-line); transition: border-color .2s, background .2s; }
.rv .rv-pager a.page-numbers:hover { border-color: var(--rv-accent); background: var(--rv-accent-50); }
.rv .rv-pager .page-numbers.current { color: #fff; background: var(--rv-primary); border-color: var(--rv-primary); }
.rv .rv-pager .page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0; }

.rv .rv-empty { display: grid; justify-items: center; gap: .5rem; max-width: 560px; margin: 1.5rem auto 0; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); text-align: center; border-radius: 24px; background: #fff; border: 1px dashed #C9D6DC; }
.rv .rv-empty__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--rv-accent-700); background: var(--rv-accent-50); }
.rv .rv-empty__ic svg { width: 30px; height: 30px; }
.rv .rv-empty h2 { font-size: var(--rv-fs-h3); }
.rv .rv-empty p { color: var(--rv-muted); margin-bottom: .5rem; }

/* 4. Closing band
   ------------------------------------------------------------------------ */
.rv .rv-band { padding-block: 0 clamp(2.5rem, 2rem + 2.5vw, 4.5rem); background: var(--rv-bg-soft); }
.rv .rv-band__box { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: clamp(1.25rem, 1rem + 1.6vw, 2.25rem); border-radius: 28px; color: #fff; background: radial-gradient(70% 140% at 100% 0%, rgb(232 163 61 / 28%), transparent 60%), linear-gradient(150deg, #0B4458, #022C3C 65%); box-shadow: 0 26px 50px -30px rgb(2 44 60 / 80%); }
.rv .rv-band__box::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgb(255 255 255 / 10%) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.rv .rv-band__ic { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; color: var(--rv-ink); background: linear-gradient(150deg, #F7C873, #E8A33D); box-shadow: 0 12px 24px -12px rgb(232 163 61 / 90%); }
.rv .rv-band__ic svg { width: 28px; height: 28px; }
.rv .rv-band__tx { flex: 1 1 320px; min-width: 0; }
.rv .rv-band__tx h2 { font-size: var(--rv-fs-h3); color: #fff; }
.rv .rv-band__tx p { margin-top: .25rem; color: rgb(255 255 255 / 82%); font-size: var(--rv-fs-sm); line-height: 2; }
.rv .rv-band__act { display: flex; flex-wrap: wrap; gap: 10px; }
.rv .rv-band__act .rv-btn svg { width: 18px; height: 18px; }

/* 5. Blog cards
   ------------------------------------------------------------------------ */
.rv .rv-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, .6rem + 1.4vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.rv .rv-pgrid > li { display: flex; margin: 0; min-width: 0; }
.rv .rv-pcard { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--rv-line); box-shadow: 0 14px 30px -24px rgb(2 44 60 / 45%); transition: transform .25s var(--rv-ease), box-shadow .25s, border-color .25s; }
.rv .rv-pcard:hover { transform: translateY(-4px); border-color: #D3DEE3; box-shadow: 0 26px 46px -26px rgb(2 44 60 / 38%); }
.rv .rv-pcard:has(:focus-visible) { box-shadow: var(--rv-focus); }
.rv .rv-pcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rv-primary-50); }
.rv .rv-pcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--rv-ease); }
.rv .rv-pcard:hover .rv-pcard__img { transform: scale(1.04); }
.rv .rv-pcard__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #9DB3BC; }
.rv .rv-pcard__noimg svg { width: 44px; height: 44px; }
.rv .rv-pcard__cat { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--rv-ink); background: rgb(255 255 255 / 92%); backdrop-filter: blur(6px); }
.rv .rv-pcard__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: .45rem; padding: 1rem 1.1rem 1.1rem; }
.rv .rv-pcard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--rv-muted); }
.rv .rv-pcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.rv .rv-pcard__meta svg { width: 15px; height: 15px; color: var(--rv-accent-700); }
.rv .rv-pcard__title { font-size: 1.0625rem; line-height: 1.7; font-weight: 700; }
.rv .rv-pcard__title a { color: var(--rv-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv .rv-pcard__title a::after { content: ""; position: absolute; inset: 0; }
.rv .rv-pcard__text { font-size: var(--rv-fs-sm); line-height: 1.95; color: var(--rv-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv .rv-pcard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: .35rem; font-size: var(--rv-fs-sm); font-weight: 700; color: var(--rv-accent-700); }
.rv .rv-pcard__more svg { width: 16px; height: 16px; transition: transform .2s; }
.rv .rv-pcard:hover .rv-pcard__more svg { transform: translateX(-4px); }
.rv .rv-pcard--feature { margin-bottom: clamp(1rem, .6rem + 1.4vw, 1.5rem); }
@media (min-width: 860px) {
	.rv .rv-pcard--feature { flex-direction: row; min-height: 340px; }
	.rv .rv-pcard--feature .rv-pcard__media { flex: 0 0 54%; aspect-ratio: auto; }
	.rv .rv-pcard--feature .rv-pcard__body { justify-content: center; gap: .7rem; padding: clamp(1.25rem, 1rem + 1.4vw, 2.25rem); }
	.rv .rv-pcard--feature .rv-pcard__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.6; }
	.rv .rv-pcard--feature .rv-pcard__title a { -webkit-line-clamp: 3; }
	.rv .rv-pcard--feature .rv-pcard__text { font-size: var(--rv-fs-base); -webkit-line-clamp: 4; }
	.rv .rv-pcard--feature .rv-pcard__more { margin-top: .5rem; }
}
.rv .rv-bsearch { position: relative; display: flex; flex: 0 1 300px; margin: 0; }
.rv .rv-bsearch input[type="search"] { width: 100%; height: 44px; padding-block: 0; padding-inline: 16px 48px; border-radius: 999px; border: 1px solid var(--rv-line); background: #fff; font-family: var(--rv-font); font-size: var(--rv-fs-sm); color: var(--rv-ink); box-shadow: var(--rv-shadow-sm); }
.rv .rv-bsearch input[type="search"]:focus { outline: 0; border-color: var(--rv-accent); box-shadow: 0 0 0 3px rgb(232 163 61 / 22%); }
.rv .rv-bsearch button { position: absolute; inset-inline-end: 4px; top: 4px; display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--rv-primary); cursor: pointer; }
.rv .rv-bsearch button svg { width: 17px; height: 17px; }

/* 6. Single post
   ------------------------------------------------------------------------ */
.rv.rv-inner--post { background: #fff; }
.rv .rv-post { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.rv .rv-post__main { min-width: 0; }
.rv .rv-post__cover { position: relative; margin: -56px 0 1.5rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px; background: var(--rv-primary-50); box-shadow: 0 30px 60px -34px rgb(2 44 60 / 70%); }
.rv .rv-post__cover img { width: 100%; height: 100%; object-fit: cover; }
.rv .rv-post__main > .rv-toc:first-child, .rv .rv-post__main > .rv-prose:first-child { margin-top: 1.5rem; }
.rv .rv-post__side { display: grid; gap: 1rem; align-content: start; }
.rv .rv-toc--side { display: none; }
@media (min-width: 1024px) {
	.rv .rv-post { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
	.rv .rv-post__side { position: sticky; top: 110px; align-self: start; margin-top: 1.75rem; max-height: calc(100vh - 130px); overflow: auto; scrollbar-width: thin; }
	.rv .rv-toc--side { display: block; }
	.rv .rv-toc--inline { display: none; }
}
.rv .rv-toc { border-radius: 20px; background: var(--rv-bg-soft); border: 1px solid var(--rv-line); }
.rv .rv-toc--inline { margin-bottom: 1.5rem; }
.rv .rv-toc summary, .rv .rv-side__h { display: flex; align-items: center; gap: 8px; padding: .85rem 1rem; font-weight: 700; color: var(--rv-ink); cursor: pointer; list-style: none; }
.rv .rv-toc summary::-webkit-details-marker { display: none; }
.rv .rv-toc summary svg:first-child, .rv .rv-side__h svg { width: 18px; height: 18px; color: var(--rv-accent-700); }
.rv .rv-toc summary svg:last-child { width: 18px; height: 18px; margin-inline-start: auto; transition: transform .2s; }
.rv .rv-toc[open] summary svg:last-child { transform: rotate(180deg); }
.rv .rv-side__h { cursor: default; padding-bottom: .35rem; }
.rv .rv-toc ol { margin: 0; padding: 0 1rem 1rem; list-style: none; display: grid; gap: 2px; }
.rv .rv-toc li { margin: 0; }
.rv .rv-toc li.lv3 { padding-inline-start: 1rem; }
.rv .rv-toc a { display: block; padding: 6px 10px; border-radius: 10px; border-inline-start: 2px solid transparent; font-size: var(--rv-fs-sm); line-height: 1.8; color: var(--rv-muted); text-decoration: none; }
.rv .rv-toc a:hover { color: var(--rv-ink); background: #fff; }
.rv .rv-toc a.is-on { color: var(--rv-ink); font-weight: 700; background: #fff; border-inline-start-color: var(--rv-accent); }
.rv .rv-side__cta { display: grid; gap: .45rem; padding: 1.1rem; border-radius: 20px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgb(232 163 61 / 28%), transparent 60%), linear-gradient(150deg, #0B4458, #022C3C 70%); }
.rv .rv-side__cta-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--rv-ink); background: linear-gradient(150deg, #F7C873, #E8A33D); }
.rv .rv-side__cta-ic svg { width: 22px; height: 22px; }
.rv .rv-side__cta b { font-size: 1.0625rem; line-height: 1.7; }
.rv .rv-side__cta p { font-size: var(--rv-fs-sm); color: rgb(255 255 255 / 82%); margin-bottom: .35rem; }

/* prose */
.rv .rv-prose { font-size: 1.0625rem; line-height: 2.15; color: #1B3440; overflow-wrap: anywhere; }
.rv .rv-prose > * + * { margin-block-start: 1.15em; }
.rv .rv-prose h2 { margin-block-start: 1.9em; padding-inline-start: .75rem; border-inline-start: 4px solid var(--rv-accent); font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); line-height: 1.7; scroll-margin-top: 110px; }
.rv .rv-prose h3 { margin-block-start: 1.6em; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.8; scroll-margin-top: 110px; }
.rv .rv-prose h4 { margin-block-start: 1.4em; font-size: 1.0625rem; }
.rv .rv-prose a { color: var(--rv-primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rv-accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.rv .rv-prose a:hover { color: var(--rv-accent-700); }
.rv .rv-prose ul, .rv .rv-prose ol { padding-inline-start: 1.5rem; }
.rv .rv-prose ul { list-style: none; }
.rv .rv-prose ul > li { position: relative; margin: 0 0 .35em; }
.rv .rv-prose ul > li::before { content: ""; position: absolute; inset-inline-start: -1.15rem; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--rv-accent); }
.rv .rv-prose ol > li { margin: 0 0 .35em; }
.rv .rv-prose ol > li::marker { font-weight: 700; color: var(--rv-accent-700); }
.rv .rv-prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; border-radius: 18px; border-inline-start: 4px solid var(--rv-accent); background: var(--rv-accent-50); color: var(--rv-ink); font-weight: 600; }
.rv .rv-prose blockquote p { margin: 0; }
.rv .rv-prose img, .rv .rv-prose video, .rv .rv-prose iframe { max-width: 100%; height: auto; border-radius: 18px; }
.rv .rv-prose figure { margin-inline: 0; }
.rv .rv-prose figcaption { margin-top: .5rem; font-size: var(--rv-fs-sm); color: var(--rv-muted); text-align: center; }
.rv .rv-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; margin-bottom: 0; border: 1px solid var(--rv-line); border-radius: 16px; font-size: var(--rv-fs-sm); }
.rv .rv-prose th, .rv .rv-prose td { padding: .7rem 1rem; text-align: start; border: 0; border-bottom: 1px solid var(--rv-line); white-space: nowrap; }
.rv .rv-prose thead th { background: var(--rv-bg-soft); color: var(--rv-ink); font-weight: 700; }
.rv .rv-prose tr:last-child td { border-bottom: 0; }
.rv .rv-prose hr { border: 0; height: 1px; background: var(--rv-line); margin-block: 2em; }
.rv .rv-prose code { padding: .1em .4em; border-radius: 6px; background: var(--rv-bg-soft); font-size: .9em; direction: ltr; unicode-bidi: isolate; }

.rv .rv-post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rv-line); }
.rv .rv-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rv .rv-post__tags li { margin: 0; }
.rv .rv-post__tags a { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: var(--rv-fs-xs); font-weight: 600; text-decoration: none; color: var(--rv-muted); background: var(--rv-bg-soft); border: 1px solid var(--rv-line); }
.rv .rv-post__tags a:hover { color: var(--rv-ink); border-color: var(--rv-accent); }
.rv .rv-share { display: flex; align-items: center; gap: 8px; font-size: var(--rv-fs-sm); color: var(--rv-muted); }
.rv .rv-share a, .rv .rv-share__copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; min-height: 0; padding: 0 12px; border-radius: 14px; border: 1px solid var(--rv-line); background: #fff; color: var(--rv-ink); font-family: var(--rv-font); font-size: var(--rv-fs-xs); font-weight: 700; text-transform: none; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.rv .rv-share a { padding: 0; }
.rv .rv-share a:hover, .rv .rv-share__copy:hover { border-color: var(--rv-accent); background: var(--rv-accent-50); }
.rv .rv-share svg { width: 19px; height: 19px; }
.rv .rv-share__copy.is-done { color: var(--rv-success); border-color: #A9DDBF; background: #EAF7EF; }
.rv .rv-post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.5rem; }
.rv .rv-post__nav-a { display: grid; gap: 2px; padding: .9rem 1.1rem; border-radius: 18px; text-decoration: none; background: var(--rv-bg-soft); border: 1px solid var(--rv-line); transition: border-color .2s, transform .2s; min-width: 0; }
.rv .rv-post__nav-a:hover { border-color: var(--rv-accent); transform: translateY(-2px); }
.rv .rv-post__nav-a small { font-size: 12px; color: var(--rv-muted); }
.rv .rv-post__nav-a b { font-size: var(--rv-fs-sm); line-height: 1.8; color: var(--rv-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv .rv-post__nav-a--next { text-align: end; }

/* comments (WordPress / Woodmart markup inside our wrapper) */
.rv .rv-comments { margin-top: 2.5rem; padding: clamp(1rem, .8rem + 1.2vw, 1.75rem); border-radius: 24px; background: var(--rv-bg-soft); border: 1px solid var(--rv-line); }
.rv .rv-comments :where(h2, h3, .comments-title, .comment-reply-title) { font-size: var(--rv-fs-h3); margin-bottom: 1rem; }
.rv .rv-comments :where(ol, ul) { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.rv .rv-comments .children { padding-inline-start: 1.25rem; margin-top: .75rem; }
.rv .rv-comments :where(.comment, .pingback) { margin: 0 0 .75rem; }
.rv .rv-comments .comment-body { padding: 1rem 1.1rem; border-radius: 18px; background: #fff; border: 1px solid var(--rv-line); }
.rv .rv-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.rv .rv-comments .comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; }
.rv .rv-comments :where(.comment-metadata, .comment-meta) { font-size: 12.5px; color: var(--rv-muted); }
.rv .rv-comments :where(.comment-metadata, .comment-meta) a { color: var(--rv-muted); text-decoration: none; }
.rv .rv-comments .comment-content { margin-top: .5rem; line-height: 2; }
.rv .rv-comments .reply a { display: inline-block; margin-top: .4rem; font-size: var(--rv-fs-xs); font-weight: 700; color: var(--rv-accent-700); text-decoration: none; }
.rv .rv-comments .comment-form { display: grid; gap: .85rem; }
.rv .rv-comments .comment-form > p { margin: 0; }
.rv .rv-comments .comment-form label { display: block; margin-bottom: .3rem; font-size: var(--rv-fs-sm); font-weight: 700; color: var(--rv-ink); }
.rv .rv-comments :where(input[type="text"], input[type="email"], input[type="url"], textarea) { width: 100%; max-width: 100%; height: auto; min-height: 48px; padding: .7rem 1rem; border-radius: 14px; border: 1px solid #C9D6DC; background: #fff; font-family: var(--rv-font); font-size: var(--rv-fs-base); color: var(--rv-ink); }
.rv .rv-comments textarea { min-height: 140px; line-height: 1.9; resize: vertical; }
.rv .rv-comments :where(input, textarea):focus { outline: 0; border-color: var(--rv-accent); box-shadow: 0 0 0 3px rgb(232 163 61 / 22%); }
.rv .rv-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.rv .rv-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--rv-muted); }
.rv .rv-comments .comment-form-cookies-consent input { width: 18px; height: 18px; margin-top: .35rem; accent-color: var(--rv-primary); }
.rv .rv-comments :where(input[type="submit"], button[type="submit"]) { min-height: 48px; padding: 0 1.75rem; border: 0; border-radius: 14px; background: var(--rv-primary); color: #fff; font-family: var(--rv-font); font-size: var(--rv-fs-base); font-weight: 700; text-transform: none; cursor: pointer; }
.rv .rv-comments :where(input[type="submit"], button[type="submit"]):hover { background: var(--rv-primary-700); }

/* related blocks */
.rv .rv-rel { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); background: var(--rv-bg-soft); }
.rv .rv-rel + .rv-rel { padding-top: 0; }
.rv .rv-rel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 1.1rem; }
.rv .rv-rel__head h2 { position: relative; padding-inline-start: .85rem; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); }
.rv .rv-rel__head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 4px; background: var(--rv-accent); }
.rv .rv-rel__head a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--rv-fs-sm); font-weight: 700; color: var(--rv-primary); text-decoration: none; }
.rv .rv-rel__head a svg { width: 16px; height: 16px; }

/* 7. Small screens
   ------------------------------------------------------------------------ */
@media (max-width: 767px) {
	.rv .rv-hero { padding-block: 1.25rem 3.75rem; }
	.rv .rv-hero__lead { font-size: var(--rv-fs-sm); }
	.rv .rv-hero__facts li { padding: 5px 11px; }
	.rv .rv-arch { border-radius: 22px 22px 0 0; margin-top: -22px; }
	.rv .rv-arch__bar { gap: 10px; }
	.rv .rv-chips { flex-basis: 100%; }
	.rv .rv-sort { width: 100%; flex-wrap: nowrap; }
	.rv .rv-sort__sel { flex: 1 1 auto; min-width: 0; }
	.rv .rv-sort select { width: 100%; min-width: 0; }
	.rv .rv-sort__open { flex: none; padding: 0 12px; font-size: var(--rv-fs-xs); }
	.rv .rv-bsearch { flex: 1 1 100%; }
	.rv .rv-post__cover { margin-top: -40px; border-radius: 18px; }
	.rv .rv-prose { font-size: 1rem; line-height: 2.1; }
	.rv .rv-post__nav { grid-template-columns: 1fr; }
	.rv .rv-post__nav-a--next { text-align: start; }
	.rv .rv-band__box { border-radius: 22px; }
	.rv .rv-band__act { width: 100%; }
	.rv .rv-band__act .rv-btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
	.rv .rv-sort { flex-wrap: wrap; }
	.rv .rv-sort__open { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.rv .rv-pcard, .rv .rv-pcard__img, .rv .rv-chips a, .rv .rv-post__nav-a { transition: none; }
}

/* ==========================================================================
   v21 — whole-site search, 404, ordinary pages, «درباره ما», «تماس با ما»
   ========================================================================== */
.rv .rv-sres { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.rv .rv-sres:first-child { margin-top: 0; }
.rv .rv-rel__head h2 span { display: inline-grid; place-items: center; min-width: 28px; height: 24px; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; vertical-align: 3px; font-size: 12px; font-weight: 800; color: var(--rv-accent-700); background: var(--rv-accent-50); }
.rv .rv-bsearch--wide { flex: 1 1 520px; max-width: 640px; }
.rv .rv-bsearch--wide input[type="search"] { height: 52px; font-size: var(--rv-fs-base); padding-inline: 20px 56px; }
.rv .rv-bsearch--wide button { top: 6px; inset-inline-end: 6px; width: 40px; height: 40px; }

/* 404 */
.rv .rv-404 { position: relative; display: grid; justify-items: center; gap: 1.1rem; overflow: hidden; padding: clamp(1.75rem, 1rem + 3vw, 3rem) clamp(1rem, .5rem + 2vw, 2rem); border-radius: 28px; text-align: center; background: #fff; border: 1px solid var(--rv-line); box-shadow: var(--rv-shadow-sm); }
.rv .rv-404__num { font-size: clamp(4.5rem, 3rem + 7vw, 8.5rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: transparent; background: linear-gradient(135deg, var(--rv-primary), #164C61 45%, var(--rv-accent)); -webkit-background-clip: text; background-clip: text; }
.rv .rv-404 .rv-bsearch--wide { width: 100%; }
.rv .rv-404__links ul { justify-content: center; }

/* ordinary page / about / contact text box */
.rv .rv-pagebox { max-width: 860px; margin-inline: auto; padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); border-radius: 28px; background: #fff; border: 1px solid var(--rv-line); box-shadow: var(--rv-shadow-sm); }
.rv .rv-pagebox__img { margin: calc(-1 * clamp(1.25rem, .8rem + 2vw, 2.5rem)) calc(-1 * clamp(1.25rem, .8rem + 2vw, 2.5rem)) 1.5rem; overflow: hidden; border-radius: 28px 28px 0 0; }
.rv .rv-pagebox__img img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.rv .rv-pagebox .rv-prose > :first-child { margin-top: 0; }
.rv .rv-pagebox__upd { margin: 1.75rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--rv-line); font-size: var(--rv-fs-sm); color: var(--rv-muted); }

/* about */
.rv .rv-about__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0 0 clamp(1.25rem, 1rem + 1vw, 2rem); padding: 0; list-style: none; }
.rv .rv-about__stats li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 16px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--rv-line); box-shadow: var(--rv-shadow-sm); }
.rv .rv-about__stats li.is-accent { color: #fff; background: linear-gradient(135deg, var(--rv-primary), #164C61); border-color: transparent; }
.rv .rv-about__si { grid-row: span 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--rv-primary); background: linear-gradient(150deg, #F7C873, #E8A33D); }
.rv .rv-about__si svg { width: 24px; height: 24px; }
.rv .rv-about__stats b { font-size: 1.35rem; font-weight: 900; line-height: 1.5; }
.rv .rv-about__stats span:not(.rv-about__si), .rv .rv-about__stats small { font-size: var(--rv-fs-sm); color: var(--rv-muted); }
.rv .rv-about__stats li.is-accent span:not(.rv-about__si), .rv .rv-about__stats li.is-accent small { color: rgb(255 255 255 / 75%); }
.rv .rv-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.rv .rv-feats li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--rv-line); box-shadow: var(--rv-shadow-sm); }
.rv .rv-feats__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 15px; color: #F2C06A; background: linear-gradient(150deg, #164C61, var(--rv-primary)); }
.rv .rv-feats__ic svg { width: 23px; height: 23px; }
.rv .rv-feats b { font-size: 1rem; font-weight: 900; color: var(--rv-primary); }
.rv .rv-feats small { font-size: var(--rv-fs-sm); line-height: 1.9; color: var(--rv-muted); }

/* contact */
.rv .rv-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, .6rem + 1.4vw, 1.5rem); align-items: start; }
@media (min-width: 960px) { .rv .rv-contact { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } }
.rv .rv-contact__info { display: grid; gap: 12px; }
.rv .rv-contact__cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rv .rv-contact__cards li, .rv .rv-contact__addr { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--rv-line); box-shadow: var(--rv-shadow-sm); }
.rv .rv-contact__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #F2C06A; background: linear-gradient(150deg, #164C61, var(--rv-primary)); }
.rv .rv-contact__ic svg { width: 21px; height: 21px; }
.rv .rv-contact__tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.8; }
.rv .rv-contact__tx small, .rv .rv-contact__addr small { font-size: var(--rv-fs-xs); color: var(--rv-muted); }
.rv .rv-contact__tx a, .rv .rv-contact__tx b { font-size: 1rem; font-weight: 800; color: var(--rv-primary); text-decoration: none; overflow-wrap: anywhere; }
.rv .rv-contact__tx a[dir="ltr"] { text-align: end; }
.rv .rv-contact__addr address { margin: 0; font-style: normal; font-weight: 700; line-height: 1.9; color: var(--rv-ink); }
.rv .rv-contact__addr address span { font-weight: 500; font-size: var(--rv-fs-sm); color: var(--rv-muted); }
.rv .rv-contact__maps { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.rv .rv-contact__map { margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--rv-line); }
.rv .rv-contact__map img { display: block; width: 100%; height: auto; }
.rv .rv-contact__social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rv .rv-contact__social a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; font-size: var(--rv-fs-sm); font-weight: 700; color: var(--rv-primary); text-decoration: none; background: #fff; border: 1px solid var(--rv-line); }
.rv .rv-contact__social a:hover { border-color: var(--rv-accent); }
.rv .rv-contact__social svg { width: 18px; height: 18px; }
.rv .rv-contact__main .rv-pagebox { max-width: none; margin: 0; }
.rv .rv-contact__cta { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.rv .rv-contact__cta p { margin: 0 0 .4rem; color: var(--rv-muted); }
