/* Blog components. Load after estilos.css through site_assets.blog_assets(). */

/* Knowledge library and short editorial notes. */
.blog-page { color: var(--ink); background: #f3f7fb; letter-spacing: 0; }
.blog-page .site-header { background: var(--blue-deep); }
.blog-page [hidden] { display: none !important; }
.blog-page h1,.blog-page h2 { font-family: var(--font-display); letter-spacing: 0; }
.blog-page h1 { font-size: 58px; line-height: 1.04; margin: 0; }
.blog-page h2 { font-size: 30px; line-height: 1.15; }
.blog-page .eyebrow { letter-spacing: 0; }
.blog-intro { padding: 128px 0 38px; }


.blog-deck { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 800px; margin: 22px 0 0; }
.blog-library { padding-bottom: 84px; }
.blog-filters { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 24px; padding: 24px 0; border-block: 1px solid var(--line); }
.blog-filters label,.blog-copy-fallback label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.blog-filters input,.blog-filters select,.blog-copy-fallback input { width: 100%; min-height: 46px; padding: 10px 14px; background: #fff; border: 1px solid #abb8cb; border-radius: 5px; color: var(--ink); font: inherit; font-size: 15px; }
.blog-results { margin: 22px 0; font-size: 13px; color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.blog-card { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.blog-card-cover { display: block; overflow: hidden; aspect-ratio: 3 / 1; border-radius: 6px; }
.blog-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.blog-card-cover:hover img { transform: scale(1.025); }
.blog-card-copy { display: flex; flex-direction: column; flex: 1; padding-top: 22px; }
.blog-card-copy .blog-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.blog-card-copy h2 { margin: 0 0 14px; font-size: 28px; }
.blog-card-copy > p:not(.blog-meta) { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 24px; }
.blog-read { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--blue-deep); margin-top: auto; }
.blog-read svg { color: var(--blue-dynamic); }
.blog-page a:not(.ventas-button):hover { color: #007aaa; }
.blog-empty { padding: 35px 0 60px; }
.blog-empty p { color: var(--muted); margin: 12px 0 20px; }
.blog-reset { border: 0; background: var(--blue-deep); color: white; padding: 12px 20px; border-radius: 5px; cursor: pointer; }
.blog-article { padding-top: 128px; }
.blog-article-heading { max-width: 880px; margin: 0 auto; }
.blog-byline { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; margin: 24px 0 32px; }
.blog-article-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; margin: 0 0 42px; }
.blog-reading { max-width: 740px; margin: auto; }
.blog-reading > p { font-size: 18px; line-height: 1.8; margin-bottom: 24px; }
.blog-article-end { border-top: 1px solid var(--line); padding-top: 24px; }
.blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 0; border-block: 1px solid var(--line); font-size: 13px; }
.blog-share button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; }
.blog-share a { padding: 12px 0; font-weight: 600; }
.blog-share-status { color: var(--muted); }
.blog-copy-fallback { padding: 18px 0; }
.blog-back { display:inline-flex; align-items:center; gap:10px; max-width:100%; margin-top:0; font-size:14px; font-weight:600; color:var(--blue-deep); text-decoration:none; }
.blog-back svg { flex:0 0 18px; color:var(--blue-dynamic); transition:transform .2s; }
.blog-back:hover svg,.blog-back:focus-visible svg { transform:translate(3px,-3px); }
@media(prefers-reduced-motion:reduce) {.blog-back svg { transition:none; }
.blog-back:hover svg,.blog-back:focus-visible svg { transform:none; }}
.blog-related { padding-top: 66px; padding-bottom: 66px; }
.blog-related > h2 { margin-bottom: 28px; font-size: 38px; }
.blog-grid-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.blog-grid-two .blog-card-cover { aspect-ratio: 3 / 1; }
.blog-page :is(a,button,input,select):focus-visible { outline: 2px solid var(--blue-dynamic); outline-offset: 4px; }
@media(max-width:1000px) {.blog-grid { gap: 20px; }
.blog-card-copy h2 { font-size: 26px; }}
@media(max-width:720px) {.blog-intro,.blog-article { padding-top: 108px; }
.blog-page h1 { font-size: 40px; }
.blog-deck { font-size: 17px; }
.blog-filters { grid-template-columns: 1fr; gap: 18px; }
.blog-grid { grid-template-columns: 1fr; gap: 34px; }
.blog-article-image { aspect-ratio: 3 / 1; margin-bottom: 28px; }
.blog-reading > p { font-size: 17px; line-height: 1.7; }
.blog-related > h2 { font-size: 32px; }}
@media(prefers-reduced-motion:reduce) {.blog-card-cover img { transition: none; }
.blog-card-cover:hover img { transform: none; }}
/* Article utility column and aligned editorial content. */
.blog-article-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:64px; align-items:start; }
.blog-article-main { min-width:0; }
.blog-article-heading { max-width:none; }
.blog-article-image { aspect-ratio:3/1; }
.blog-rail { align-self:stretch; min-width:0; }
.blog-rail-inner { position:sticky; top:112px; border-top:2px solid var(--blue-dynamic); padding-top:14px; }
.blog-rail-label { font-size:13px; font-weight:600; margin:0 0 10px; }
.blog-rail-time,.blog-progress-label { font-size:12px; color:var(--muted); }
.blog-progress { margin:12px 0 16px; }
.blog-progress progress { display:block; width:100%; height:4px; border:0; background:var(--line); color:var(--blue-dynamic); margin-bottom:10px; }
.blog-progress progress::-moz-progress-bar { background:var(--blue-dynamic); }
.blog-progress progress::-webkit-progress-bar { background:var(--line); }
.blog-progress progress::-webkit-progress-value { background:var(--blue-dynamic); }
.blog-rail .blog-share { gap:4px 14px; }
.blog-rail .blog-share > span:first-child { width:100%; }
.blog-rail .blog-share-status { overflow-wrap:anywhere; }
.blog-rail-back { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-height:44px; padding:10px 12px; font-size:12px; line-height:1.5; font-weight:600; margin-top:14px; text-decoration:none; border:1px solid var(--line); border-radius:5px; background:#eaf7fc; background:color-mix(in srgb, var(--blue-dynamic) 8%, white); color:var(--blue-deep); }
.blog-rail-back span { min-width:0; }
.blog-rail-back svg { flex:0 0 18px; }
.blog-rail-back:is(:hover,:focus-visible) { border-color:var(--blue-dynamic); background:#dff3fc; background:color-mix(in srgb, var(--blue-dynamic) 13%, white); }
@media(max-width:1000px) {.blog-article-layout { grid-template-columns:220px minmax(0,1fr); gap:32px; }}
@media(max-width:720px) {.blog-article-layout { display:flex; flex-direction:column; gap:28px; }
.blog-rail { width:100%; }
.blog-rail-inner { position:static; padding-top:14px; }
.blog-rail-label,.blog-rail-back { display:none; }
.blog-rail-time { margin:0; }
.blog-progress { margin:12px 0; }
.blog-rail .blog-share { padding:4px 0; border-bottom:0; gap:12px; }
.blog-rail .blog-share > span:first-child { width:auto; }
.blog-article-main { width:100%; }}
/* Share actions follow the same vertical rhythm as the reading tools. */
.blog-article-main .blog-reading { max-width:none; }
.blog-rail .blog-share { display:flex; flex-direction:column; align-items:stretch; gap:0; padding:10px 0; }
.blog-rail .blog-share > span:first-child { margin-bottom:8px; }
.blog-rail .blog-share a,.blog-rail .blog-share button { display:flex; align-items:center; justify-content:flex-start; gap:12px; width:100%; min-height:44px; height:auto; padding:8px 0; border:0; background:transparent; border-radius:0; font:inherit; font-weight:600; text-align:left; color:var(--blue-deep); }
.blog-rail .blog-share svg { flex:0 0 24px; width:24px; height:24px; }
.blog-rail .blog-share [data-share="whatsapp"] img { flex-basis:24px !important; width:24px; height:24px; padding:2px !important; clip-path:inset(2px round 2px) !important; }
.blog-rail .blog-share a:hover,.blog-rail .blog-share button:hover { color:#007aaa; }
.blog-rail .blog-share [data-share="whatsapp"] svg { color:#168542; }
.blog-rail .blog-share [data-share="linkedin"] svg { color:#0a66c2; }
/* Author identity is separate from article-sharing actions. */
.blog-author { display:grid; grid-template-columns:64px minmax(0,1fr); column-gap:12px; align-items:center; padding:12px; margin-bottom:16px; border:1px solid #dceaf3; border-radius:6px; background:#f0f7fb; }
.blog-author-avatar { display:grid; place-items:center; width:64px; height:64px; border-radius:50%; object-fit:cover; background:#e7f4fa; color:var(--blue-deep); font-size:22px; font-weight:600; margin-bottom:14px; }
.blog-author-name { grid-column:2; align-self:end; min-width:0; overflow-wrap:anywhere; font-size:15px; line-height:1.35; font-weight:600; margin:0 0 6px; }
.blog-author-role { grid-column:2; align-self:start; font-size:12px; color:var(--muted); margin:0 0 6px; }
.blog-author a { grid-column:1 / -1; display:flex; align-items:center; gap:8px; min-height:32px; font-size:12px; font-weight:400; color:var(--muted); }
.blog-author a:hover,.blog-author a:focus-visible { color:var(--blue-deep); }
.blog-author-posts { text-decoration:none; }
.blog-author a svg,.blog-author a .blog-linkedin-mark { flex:0 0 14px; width:14px; height:14px; }
.blog-author a .blog-linkedin-mark { font-size:11px; }
.blog-author .blog-author-avatar { grid-column:1; grid-row:1 / 3; margin-bottom:8px; }
.blog-linkedin-mark { display:inline-grid; place-items:center; width:20px; height:20px; background:#0a66c2; color:white; border-radius:2px; font:bold 15px Arial,sans-serif; }
.blog-rail-inner { max-height:none; overflow:visible; }
@media(max-width:720px) {.blog-rail-inner { max-height:none; overflow:visible; }}
.blog-author-portrait { position:relative; overflow:hidden; }
.blog-author-portrait img { display:block; width:100%; height:100%; object-fit:cover; }
.blog-author-portrait[data-author="gabriel-andreoli"] img { object-fit:contain; object-position:center; }
/* Align the rail border with the center of the category's 18px line box. */
@media(min-width:721px) {.blog-article-heading > .eyebrow { line-height:18px; }
.blog-rail { padding-top:8px; }}
/* Blog navigation: search first, separate from the product-site header. */
.blog-header-inner { display:flex; align-items:center; gap:28px; min-height:88px; padding-block:16px; }
.blog-header .brand { flex:0 0 170px; }
.blog-header .brand img { width:170px; max-width:100%; height:auto; filter:none; }
.blog-header .blog-filters { display:grid; grid-template-columns:minmax(160px,1fr) 190px; flex:1; gap:16px; padding:0; border:0; }
.blog-header label { display:block; font-size:11px; line-height:1.4; font-weight:400; color:#c1cee3; margin:0 0 4px; }
.blog-header input,.blog-header select { min-height:40px; height:40px; border:1px solid #536588; background:#fff; border-radius:5px; font:inherit; font-size:13px; color:var(--blue-deep); padding:8px 10px; width:100%; }
.blog-search-field { position:relative; }
.blog-header input { padding-right:44px; }
.blog-search-field button { position:absolute; right:1px; top:1px; display:grid; place-items:center; width:38px; height:38px; border:0; border-radius:4px; background:transparent; color:var(--blue-deep); cursor:pointer; }
.blog-search-field button:hover { background:#e7f4fa; }
.blog-header-language { flex:0 0 115px; min-width:0; }
.blog-header-language select { background:transparent; color:#d6e3f3; border-color:#536588; font-size:12px; }
.blog-header-language option { color:var(--blue-deep); background:white; }
.blog-header-language option:disabled { color:#737c8d; }
.blog-page .blog-intro,.blog-page .blog-article { padding-top:calc(var(--blog-header-height,108px) + 32px); }
@media(max-width:900px) {.blog-header-inner { gap:16px; }
.blog-header .brand { flex-basis:130px; }
.blog-header .blog-filters { grid-template-columns:minmax(120px,1fr) 160px; gap:12px; }}
@media(max-width:720px) {.blog-header-inner { flex-wrap:wrap; gap:12px; padding-block:12px; }
.blog-header .brand { flex:1; }
.blog-header .brand img { width:140px; }
.blog-header-language { flex-basis:105px; }
.blog-header .blog-filters { order:3; flex:0 0 100%; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
.blog-header-language label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.blog-page .blog-intro,.blog-page .blog-article { padding-top:calc(var(--blog-header-height,150px) + 24px); }}
.blog-breadcrumb-current { min-width:0; overflow-wrap:anywhere; }
@media(max-width:720px) {.blog-breadcrumb-current { flex:0 1 100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }}
.blog-article-main { min-width:0; }
/* Editorial context and source diagram. */
.blog-reading > h2 { margin: 48px 0 20px; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.blog-context-callout { margin: 32px 0; padding: 24px 28px; border-left: 4px solid #2563eb; border-radius: 0 16px 16px 0; background: #dbeafe; color: #17365c; }
.blog-context-callout p { margin: 0; font-size: clamp(19px, 2.5vw, 23px); line-height: 1.6; }
.blog-origins { margin: 36px 0; padding: 28px 20px; border: 1px solid var(--line); border-radius: 20px; background: #f8fafc; text-align: center; }
.blog-origins-sources { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 0 28px; list-style: none; }
.blog-origins-sources li { position: relative; display: grid; place-items: center; padding: 12px 6px; border: 1px solid #cbd5e1; border-radius: 10px; background: white; color: #17365c; font-size: 14px; line-height: 1.4; }
.blog-origins-sources li::after { content: ""; position: absolute; top: 100%; left: 50%; height: 29px; border-left: 1px solid #7892ae; }
.blog-origins-destination { position: relative; padding: 28px 12px 18px; border-top: 1px solid #7892ae; color: #17365c; }
.blog-origins-destination::before { content: "↓"; position: absolute; top: -4px; left: calc(50% - 10px); width: 20px; font-size: 24px; }
.blog-origins-destination strong { display: block; font-size: 21px; }
.blog-origins-destination span { display: block; margin-top: 8px; font-size: 14px; }
.blog-origins figcaption { color: #526174; font-size: 14px; line-height: 1.6; }
@media (max-width: 600px) {.blog-context-callout { padding: 20px; }
.blog-origins-sources { grid-template-columns: 1fr; gap: 10px; border-right: 1px solid #7892ae; padding: 0 24px 20px 0; }
.blog-origins-sources li::after { top: 50%; left: 100%; width: 25px; height: 0; border-left: 0; border-top: 1px solid #7892ae; }}
/* Long-form articles use the existing editorial width and type scale. */
.blog-editorial-list { list-style: disc outside; margin: 0 0 28px; padding-left: 1.4em; font-size: 18px; line-height: 1.8; }
.blog-editorial-list li { padding-left: .25em; margin-bottom: 10px; }
.blog-editorial-list li::marker { color: #2563eb; }
.blog-secondary-callout { margin: 28px 0 36px; padding: 20px 24px; border-left: 3px solid #7892ae; border-radius: 0 12px 12px 0; background: #e5edf7; color: #17365c; }
.blog-secondary-callout p { margin: 0; font-size: 18px; line-height: 1.8; }
.blog-reading > .blog-closing { margin-top: 32px; color: #17365c; font-size: clamp(21px, 2.5vw, 26px); font-weight: 600; line-height: 1.5; }
@media (max-width: 600px) {.blog-editorial-list, .blog-secondary-callout p { font-size: 17px; line-height: 1.7; }}
/* Historical articles: semantic chronology within the existing editorial column. */
.blog-history-timeline { margin: 40px 0 48px; padding: 32px; border: 1px solid #bfd5ed; border-radius: 16px; background: #e5edf7; }
.blog-history-timeline h2 { margin: 0 0 28px; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; color: #01164a; }
.blog-history-timeline ol { list-style: none; margin: 0; padding: 0; }
.blog-history-timeline li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; margin-left: 6px; border-left: 2px solid #0b3d91; padding: 0 0 28px 24px; }
.blog-history-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.blog-history-timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #0b3d91; border: 2px solid #e5edf7; }
.blog-history-timeline li:first-child::before { background: #f23b4f; }
.blog-history-timeline p { margin: 0; font-size: 17px; line-height: 1.65; }
.blog-history-timeline .blog-timeline-label { color: #0b3d91; font-weight: 600; }
.blog-year-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; margin: 28px 0 32px; padding: 28px; border-radius: 16px; background: #01164a; color: #fff; }
.blog-year { font-family: "Barlow Condensed", sans-serif; font-size: clamp(56px, 7vw, 80px); font-weight: 600; line-height: 1; color: #00a3e8; }
.blog-year-callout p { margin: 0; font-size: 19px; line-height: 1.65; }
@media (max-width: 1000px) {.blog-history-timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.blog-year-callout { grid-template-columns: minmax(0, 1fr); gap: 16px; }}
@media (max-width: 600px) {.blog-history-timeline { padding: 24px 20px; }
.blog-history-timeline li { padding-left: 20px; }
.blog-year-callout { padding: 24px 20px; }
.blog-year-callout p { font-size: 18px; }}
/* The 2019 milestone marks the first major technological evolution. */
.blog-history-timeline .blog-timeline-featured { border-left-color: #f23b4f; }
.blog-history-timeline .blog-timeline-featured::before { background: #f23b4f; }
.blog-history-timeline .blog-timeline-featured .blog-timeline-label { color: #01164a; font-size: 21px; font-weight: 700; }
/* Shared information follows the same sequence on every screen. */
.blog-information-flow { margin: 36px 0; padding: 28px 24px; border-block: 1px solid #bfd5ed; }
.blog-information-flow ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 0; gap: 32px; }
.blog-information-flow li { position: relative; margin: 0; padding: 12px 4px; text-align: center; font-weight: 600; color: #01164a; border-bottom: 2px solid #0b3d91; }
.blog-information-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -27px; color: #0b3d91; }
.blog-information-flow figcaption { margin-top: 22px; text-align: center; color: #01164a; font-size: 16px; line-height: 1.6; }
@media (max-width: 720px) {.blog-information-flow ol { grid-template-columns: minmax(0,1fr); gap: 26px; }
.blog-information-flow li:not(:last-child)::after { content: "↓"; right: calc(50% - 8px); bottom: -28px; }}
/* Equal perspectives within the same dealership operation. */
.blog-role-perspectives { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; list-style:none; padding:24px 0; margin:0 0 28px; border-block:1px solid var(--line); }
.blog-role-perspectives li { min-width:0; position:relative; }
.blog-role-perspectives li + li { border-left:1px solid var(--line); padding-left:24px; }
.blog-role-perspectives strong { display:block; font-size:20px; color:var(--blue-deep); margin-bottom:14px; }
.blog-role-perspectives p { font-size:16px; line-height:1.75; margin:0; }
@media(max-width:1000px) {.blog-role-perspectives { grid-template-columns:1fr; gap:20px; }
.blog-role-perspectives li + li { border-left:0; border-top:1px solid var(--line); padding:20px 0 0; }}
.blog-article-heading h1 { text-wrap:balance; }
/* Historical editorial label; retain the shared article layout. */
.blog-archive-label { color: #0b3d91; font-size: 14px; letter-spacing: .035em; margin: 0 0 18px; }
.blog-archive-article .blog-context-callout { background: #01164a; color: #fff; border-left-color: #00a3e8; }
.blog-archive-article .blog-information-flow li { overflow-wrap: anywhere; }
/* Compact article navigation; keep the return context distinct from the rail. */
.blog-adjacent { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.blog-adjacent .blog-adjacent-link, .blog-adjacent .blog-back { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; margin: 0; border: 1px solid #bfd5ed; border-radius: 8px; background: #fff; color: #01164a; text-decoration: none; font-size: 14px; line-height: 1.5; font-weight: 600; }
.blog-adjacent-label { display: flex; align-items: center; gap: 10px; }
.blog-adjacent-next .blog-adjacent-label { flex-direction: row-reverse; }
.blog-adjacent .blog-back { background: transparent; border-color: transparent; color: #0b3d91; }
.blog-adjacent .blog-adjacent-link:hover { background: #eaf5ff; border-color: #0b3d91; }
.blog-adjacent a:focus-visible { outline: 3px solid #00a3e8; outline-offset: 3px; }
.blog-card[id] { scroll-margin-top: calc(var(--blog-header-height, 110px) + 24px); }
@media (max-width: 600px) {.blog-adjacent .blog-adjacent-link { flex: 1 1 auto; padding-inline: 12px; }
.blog-adjacent .blog-back { flex-basis: 100%; }}
