/* Owner-operator guides — the few rules the theme does not already provide.
 *
 * Everything structural (hero, breadcrumbs, cards, sticky h2 menu, article
 * body, buttons) is the theme's own CSS: the templates reuse its markup. What
 * is left here is the 3-up grid for the card sections, the label/draft pills on
 * a card, the "coming next" list and the closing CTA band. */

/* ------------------------------------------------------------ card grid */

.guides-cards-scope .container .services__items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.guides-cards-scope .container .services__items .service__item {
	flex: 1 1 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.guides-cards-scope .container .services__items .services-text__block {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.guides-cards-scope .container .services__items .primary__btn {
	margin-top: auto;
	max-width: 100%;
}

/* The theme pins .primary__btn to margin-top:0 with a 6-class selector
 * (.services__section.services-new … .service__item .primary__btn), which beat the
 * rule above and let the CTA float up on cards with a one-line title. Same weight
 * plus .guides-cards-scope wins it back, so the CTA sits on the card floor. */
.services__section.services-new.guides-cards-scope .container .services__items .service__item .primary__btn {
	margin-top: auto;
}

@media (max-width: 62em) {
	.guides-cards-scope .container .services__items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 40em) {
	.guides-cards-scope .container .services__items { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- card details */

.guide__item .service__image { position: relative; display: block; }

.guide__item .guide__label,
.guide__item .guide__draft {
	position: absolute;
	top: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 6px;
	line-height: 1.3;
}

.guide__item .guide__label { left: 12px; background: #ba214a; color: #fff; }
.guide__item .guide__draft { right: 12px; background: rgba(9, 11, 25, .78); color: #fff; }

/* The `services-new` scope of the theme paints section titles red and their
 * <span> black. Every other section head on /owner-operators/ is the other way
 * round, so keep the guides in line with the page they sit on. */
.services__section.guides-cards-scope .container .main__top-block h2 { color: #090b19; }
.services__section.guides-cards-scope .container .main__top-block h2 span { color: #ba214a; }

/* Hero. The theme's h1 scale is cut for two-word page titles ("Expedited
 * freight"); a guide title is a sentence, so it needs to wrap and to come down
 * a step on a phone. And `.main__description` is black in the theme — fine on
 * its white templates, invisible on the dark hero used here. */
.sb-guides .hero__section h1 { overflow-wrap: anywhere; }
.sb-guides .hero__section .main__description { color: #fff; }
.sb-guides .breadcumbs-page ul { flex-wrap: wrap; row-gap: .375rem; }

@media (max-width: 48em) {
	.sb-guides .hero__section h1 { font-size: clamp(30px, 10vw, 52px); line-height: 112%; }
}

.services__section.guides-cards-scope .container .main__top-block { margin-bottom: 2.25rem; }

/* ------------------------------------------------------------------ hub */

.oog-hub .guides-hub__intro {
	color: #454956;
	font-size: 1.0625rem;
	line-height: 1.65;
	max-width: 780px;
	margin: 0 0 2.5rem;
}

.oog-hub .guides-hub__intro p { margin: 0 0 1rem; }

.oog-hub .guides-hub__empty {
	color: #6b7280;
	font-size: 1rem;
	padding: 2.5rem 1rem;
	background: #f6f7f9;
	border-radius: .75rem;
	text-align: center;
}

.guides-next { margin-top: clamp(48px, 5vw, 72px); }
.guides-next .main__top-block { margin-bottom: 28px; }

.guides-next__items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.guides-next__item {
	border: 1px dashed rgba(0, 0, 0, .18);
	border-radius: 1.375rem;
	padding: 1.5rem;
	background: #f8f8f9;
}

.guides-next__label {
	display: block;
	color: #ba214a;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.guides-next__title {
	display: block;
	color: #090b19;
	font-size: clamp(16px, 1.39vw, 20px);
	font-weight: 600;
	line-height: 130%;
}

@media (max-width: 62em) { .guides-next__items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40em) { .guides-next__items { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- article */

.oog-guide .post__top-block { justify-content: flex-end; }
.oog-guide .content > *:first-child { margin-top: 0; }

/* ------------------------------------------------------------ teaser/CTA */

.guides-teaser .guides-teaser__sub {
	color: #454956;
	font-size: 1.0625rem;
	line-height: 1.6;
	max-width: 720px;
	margin: 22px 0 40px;
}

.guides-teaser__foot { display: flex; justify-content: center; margin-top: 2.5rem; }
.guides-teaser__foot .primary__btn,
.guides-cta .primary__btn { max-width: none; width: auto; margin-top: 0; padding: 16px 32px; }

.guides-cta {
	position: relative;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	margin-top: clamp(60px, 5.5vw, 80px);
	overflow: hidden;
}

.guides-cta .bg-dark {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(19, 3, 7, .94) 0%, rgba(90, 12, 34, .82) 55%, rgba(9, 0, 2, .62) 100%);
	z-index: 0;
}

.guides-cta .container { position: relative; z-index: 1; }

.guides-cta__inner {
	padding: clamp(48px, 5vw, 80px) 0;
	max-width: 720px;
	color: #fff;
}

.guides-cta__inner .suptitle { color: #fff; border-bottom-color: rgba(255, 255, 255, .25); }

.guides-cta__inner h2 {
	color: #fff;
	font-size: clamp(28px, 3.05vw, 44px);
	font-weight: 600;
	line-height: 120%;
	margin: 20px 0 0;
}

.guides-cta__inner p {
	color: rgba(255, 255, 255, .7);
	font-size: 1.0625rem;
	line-height: 1.6;
	margin: 16px 0 32px;
}

/* --------------------------------------------- guide typography (21.08.26)
 * Елена: герой нечитаем (капс, 88px при интерлиньяже 73.92 — строки налезают),
 * H2 в теле 48px без отступа сверху. Числа взяты у собственного блога SB
 * (.content h2 в /blog/), а не подобраны на глаз. Спека Aramis
 * porthos-sb-guides-typography-2026-08-21.md, одобрено Еленой msg 7140.
 * Всё прибито к .sb-guides — на блог и остальной сайт утечь не может. */

/* Капс снимается на ОБОИХ брейкпоинтах, поэтому вне медиазапроса:
 * внутри min-width мобайл остался бы в верхнем регистре. */
.sb-guides .hero__section h1 { text-transform: none; }

@media (min-width: 48.0625em) {
	.sb-guides .hero__section h1 {
		font-size: clamp(40px, 4.0vw, 52px);
		line-height: 120%;
		letter-spacing: -0.5px;
		font-weight: 600;
		margin-bottom: 16px;
		text-wrap: balance;
	}
}

/* Мобайл: кегль (39px) не проблема, лечим интерлиньяж и вес. */
@media (max-width: 48em) {
	.sb-guides .hero__section h1 {
		line-height: 120%;
		letter-spacing: -0.5px;
		font-weight: 600;
	}
}

.sb-guides .content h2 {
	font-size: 30px;
	line-height: 39px;
	font-weight: 600;
	letter-spacing: -0.5px;
	margin-top: 48px;
	margin-bottom: 16px;
}

@media (max-width: 768px) {
	.sb-guides .content h2 { font-size: 26px; line-height: 34px; margin-top: 36px; }
}

/* Елена msg 7144: вопросы FAQ нечитаемы — weight 400 как у ответа, margin 0 с обеих сторон
 * (вопрос вплотную к своему ответу), 24px при трекинге -1.2px = -5% от em.
 * Причина: mu-plugins/sb-blog-typography.php:14 печатает типографику тела только на
 * post_type 'blog'; гайды — 'page', правило до них не доезжает, H3 падает в main.min.css.
 * Числа взяты у собственного блога SB (.blog__post .content h3), не подобраны на глаз.
 * Всё прибито к .sb-guides — на блог и остальной сайт утечь не может.
 * Спека Aramis porthos-sb-guides-faq-h3-2026-08-21.md, одобрено Еленой 12:05 UTC. */

.sb-guides .content h3 {
	font-size: 22px;
	line-height: 1.35;
	font-weight: 600;
	color: #090b19;
	letter-spacing: -0.2px;
	margin: 32px 0 12px;
	text-align: left;
	max-width: none;
}

@media (max-width: 768px) {
	.sb-guides .content h3 {
		font-size: 20px;
		margin: 24px 0 10px;
	}
}

/* Елена msg 7144 «hard to read … no spacing … the size» + msg 7159 «fix pls»:
 * у .content p не было своего line-height вовсе — абзац наследовал normal и
 * получал шаг 21px при кегле 18px (отношение 1.17, строки почти касаются).
 * Значения сняты с собственного блога SB, где типографика уже принята: 17/1.65.
 * Медиазапроса нет намеренно — на блоге значения одинаковы на 1280 и 390.
 * Всё прибито к .sb-guides — на блог и остальной сайт утечь не может.
 * Спека Aramis porthos-sb-guides-body-paragraphs-2026-08-21.md, одобрено Еленой. */

.sb-guides .content p {
	font-size: 17px;
	line-height: 1.65;
	color: #1a1d2e;
	margin: 0 0 20px;
}

/* Елена msg 7180 «the subtext in the hero is tiny … hard to read» + msg 7186
 * «yes , pls» / «yes pls»: на .main__description оверрайд из этого файла был
 * только про color, поэтому кегль проваливался в базовое правило темы
 * .main__description{font-size:12px;line-height:130%;margin-top:80px} - меньше,
 * чем хлебные крошки под ним. Значения сняты с блога SB, где та же типографика
 * уже принята: 16/1.55/720/20 + тень (подзаголовок лежит на фотографии).
 * color НЕ переносим: у блога rgba(255,255,255,.88), здесь фон темнее,
 * контраст на живой фотографии не понижаем без просьбы.
 * Правило прибито к .sb-guides - на 36 постов блога утечь не может.
 * Спека Aramis porthos-sb-guides-hero-subtext-2026-08-21.md, гейт закрыт. */

.sb-guides .hero__section .main__description {
	font-size: 16px;
	line-height: 1.55;
	max-width: 720px;
	margin-top: 20px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

@media (max-width: 768px) {
	.sb-guides .hero__section .main__description {
		font-size: 15px;
	}
}

/* StarBriges in-article CTA (inline banner), added 2026-10. Visual fixed; only .sb-cta__title, .sb-cta__text and the button change per placement. */
.blog__post .content .sb-inline-cta{position:relative;isolation:isolate;overflow:hidden;margin:40px 0;padding:32px 36px;min-height:236px;display:flex;align-items:center;border-radius:12px;background:#0d0a1a}
.blog__post .content .sb-inline-cta::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(155deg,rgba(186,33,74,.95) 0%,rgba(104,41,126,.92) 48%,rgba(13,10,26,.98) 100%)}
.blog__post .content .sb-inline-cta__road{position:absolute;z-index:0;left:auto;right:0;bottom:0;width:58%;height:34%;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.35));border-top:1px solid rgba(255,255,255,.08)}
.blog__post .content .sb-inline-cta__road::before{content:"";position:absolute;left:0;right:0;top:55%;height:3px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.22) 0 34px,rgba(255,255,255,0) 34px 62px)}
.blog__post .content .sb-inline-cta__glow{position:absolute;z-index:0;right:4%;bottom:8%;width:48%;height:72%;pointer-events:none;background:radial-gradient(closest-side,rgba(255,170,190,.30),rgba(255,170,190,0) 100%)}
.blog__post .content .sb-inline-cta__copy{position:relative;z-index:2;max-width:50%}
.blog__post .content .sb-inline-cta__logo{display:block;width:132px;height:auto;margin:0;border-radius:0}
.blog__post .content .sb-inline-cta .sb-cta__title{color:#fff;margin:16px 0 0;padding:0;font-size:24px;line-height:1.2;font-weight:600;letter-spacing:-.3px}
.blog__post .content .sb-inline-cta .sb-cta__text{color:rgba(255,255,255,.85);margin:10px 0 0;padding:0;font-size:15px;line-height:1.5}
.blog__post .content .sb-inline-cta .sb-cta__btn{display:inline-flex;align-items:center;margin-top:20px;padding:12px 22px;border-radius:100px;background:#fff;color:#ba214a;font-size:15px;font-weight:600;line-height:1.2;text-decoration:none;transition:.3s all}
.blog__post .content .sb-inline-cta .sb-cta__btn:hover{background:#ba214a;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6)}
.blog__post .content .sb-inline-cta__van{position:absolute;z-index:1;right:3%;bottom:22px;width:44%;max-width:380px;height:auto;margin:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 16px 12px rgba(0,0,0,.45))}
.blog__post .content .sb-inline-cta__shadow{position:absolute;z-index:1;right:4%;bottom:14px;width:42%;max-width:360px;height:20px;pointer-events:none;background:radial-gradient(closest-side,rgba(0,0,0,.55),rgba(0,0,0,0))}
@media (max-width:767px){
 .blog__post .content .sb-inline-cta{display:block;padding:164px 22px 26px;min-height:0}
 .blog__post .content .sb-inline-cta__copy{max-width:none}
 .blog__post .content .sb-inline-cta__van{top:34px;bottom:auto;right:50%;transform:translateX(50%);width:calc(100% - 28px);max-width:300px}
 .blog__post .content .sb-inline-cta__shadow{top:140px;bottom:auto;right:50%;transform:translateX(50%);width:calc(100% - 48px);max-width:270px;height:16px}
 .blog__post .content .sb-inline-cta__road{width:100%;height:54px;top:104px;bottom:auto}
 .blog__post .content .sb-inline-cta__glow{top:0;bottom:auto;right:10%;width:80%;height:176px}
 .blog__post .content .sb-inline-cta .sb-cta__title{font-size:21px}
}

/* aramis 2026-10-06: CTA road without a hard box (Lena 12816) */
.blog__post .content .sb-inline-cta__road{left:0;right:0;width:auto;height:38%;border-top:0;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.30));-webkit-mask-image:linear-gradient(90deg,transparent 35%,#000 75%);mask-image:linear-gradient(90deg,transparent 35%,#000 75%)} .blog__post .content .sb-inline-cta__road::before{display:none} @media (max-width:767px){.blog__post .content .sb-inline-cta__road{top:96px;height:70px;-webkit-mask-image:linear-gradient(180deg,transparent,#000 60%,transparent);mask-image:linear-gradient(180deg,transparent,#000 60%,transparent)}}

/* aramis 2026-10-06: lists and inline links in guide bodies had no rule (theme reset: no bullets, 18px/normal, links black). Values copied from mu-plugins/sb-blog-typography.php so guides read like the blog (Lena 12847/12851). */
.sb-guides .content ul,.sb-guides .content ol{display:block!important;flex-direction:initial!important;column-gap:initial!important;row-gap:initial!important;align-items:initial!important;padding:0!important;margin:0 0 24px!important;background:transparent!important;list-style:none!important}
.sb-guides .content ol{counter-reset:sb-ol}
.sb-guides .content li{display:list-item!important;list-style:none!important;margin:0 0 10px!important;color:#1a1d2e!important;text-transform:none!important;text-align:left!important;position:relative!important;padding-left:26px!important;font-size:17px;line-height:1.65}
.sb-guides .content ul>li::before{content:"\2022"!important;position:absolute!important;left:8px!important;top:0!important;color:#ba214a!important;font-weight:700!important;font-size:18px!important;line-height:1.65!important}
.sb-guides .content ol>li{counter-increment:sb-ol}
.sb-guides .content ol>li::before{content:counter(sb-ol) "."!important;position:absolute!important;left:0!important;top:0!important;color:#ba214a!important;font-weight:600!important;font-size:16px!important;line-height:1.65!important;min-width:22px!important}
.sb-guides .content li ul{margin:10px 0 0!important}
.sb-guides .content li ul>li::before{content:"\25E6"!important;font-size:16px!important}
.sb-guides .content p a,.sb-guides .content li a{color:#ba214a!important;text-decoration:underline!important;text-underline-offset:3px;text-decoration-thickness:1px}
.sb-guides .content p a:hover,.sb-guides .content li a:hover{text-decoration-thickness:2px}
