/* Inner pages: services, global trade, about, blog/cases, post, contact, legal, home blog section */
.page-hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transform: scale(1.08); transition: opacity 1s ease, transform 6s var(--ease-out); }
body.is-loaded .page-hero-media img { opacity: 1; transform: scale(1.02); }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,35,80,.96) 0%, rgba(10,35,80,.85) 45%, rgba(10,35,80,.35) 100%); }
.page-hero-inner { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 54px; max-width: 900px; margin-left: 0; }
.page-hero h1 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 16px; }
.page-hero .lead { max-width: 640px; }
.page-hero-inner > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
body.is-loaded .page-hero-inner > * { opacity: 1; transform: none; }
body.is-loaded .page-hero-inner > :nth-child(2) { transition-delay: .12s; }
body.is-loaded .page-hero-inner > :nth-child(3) { transition-delay: .24s; }
.h1-dark { color: var(--navy); font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 10px; }
.bg-soft { background: var(--bg-soft); }
.narrow { max-width: 820px; }
.center-block { text-align: center; padding: 40px 0; }
.center-block .btn { margin-top: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.lead-dark { font-size: 17px; color: var(--navy); font-weight: 500; }
.main.inner .numbers { border-top: 1px solid var(--line); }

/* prose */
.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 26px; margin: 34px 0 12px; }
.prose h3 { font-size: 20px; margin: 26px 0 10px; color: var(--navy); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--blue); background: var(--bg-soft); color: var(--navy); font-style: italic; border-radius: 0 12px 12px 0; }
.prose img { width: 100%; height: auto; border-radius: 14px; margin: 8px 0; }
.prose figure { margin: 22px 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.prose pre { background: var(--navy-900); color: #fff; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; }

/* services list */
.service-list { display: flex; flex-direction: column; gap: 28px; }
.service-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 100px; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media { min-height: 300px; }
.service-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service-row:hover .service-row-media img { transform: scale(1.04); }
.service-row-body { padding: 40px 44px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.service-row-body h2 { font-size: 26px; }
.service-row-body .btn { align-self: flex-start; margin-top: 8px; }
.service-row-body .card-ico { width: 34px; height: 34px; }

/* feature grid / values / regions grid */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-grid li { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature-grid strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.feature-grid strong br { display: none; }
.feature-grid span { font-size: 13.5px; color: var(--muted); }
.regions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.regions-grid li { padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.values-grid li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.values-grid strong { color: var(--navy); font-size: 16px; }
.values-grid span { font-size: 13.5px; color: var(--muted); }
.main.inner .presence-map { max-width: 900px; margin: 0 auto 28px; }

/* posts */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 600; color: var(--muted); transition: all .25s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(11,42,91,.12); }
.post-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #c9d5e6; }
.post-card-ph .ico { width: 40px; height: 40px; }
.post-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.post-card h3 { font-size: 18px; line-height: 1.3; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.pagination a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--muted); }
.pagination a.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .ico { width: 44px; height: 44px; color: #c9d5e6; margin-bottom: 12px; }

/* single post */
.post-header { background: var(--bg-soft); padding: 48px 0 0; }
.post-header-inner { max-width: 860px; padding-bottom: 30px; }
.post-header h1 { color: var(--navy); font-size: clamp(30px, 3.4vw, 44px); margin: 14px 0 14px; }
.post-header .lead { color: var(--muted); font-size: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.post-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/9; transform: translateY(40px); margin-top: -10px; box-shadow: var(--shadow); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 56px; padding-top: 80px; padding-bottom: 60px; justify-content: space-between; }
.post-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.post-cta { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.post-cta .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 0; }
.post-cta strong { font-size: 15px; line-height: 1.45; font-weight: 500; }
.post-cta .btn-primary { background: var(--white); color: var(--navy); }
.share { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); transition: all .25s; }
.share a:hover, .share button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.share span { margin-right: auto; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy); flex: 1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd8e6; border-radius: 10px; font: inherit; font-size: 14px; color: var(--text); background: var(--white); outline: none; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,191,.12); }
.field-row { display: flex; gap: 16px; }
.contact-form .btn { align-self: flex-start; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-msg { font-size: 14px; padding: 12px 14px; border-radius: 10px; background: #e3f6ee; color: #1d7a55; }
.form-msg.is-error { background: #fdecea; color: #b3261e; }
.contact-card { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list strong { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .contact-list span { font-size: 15px; color: var(--navy); font-weight: 500; }

/* legal */
.legal .prose h2 { font-size: 20px; margin-top: 34px; scroll-margin-top: 100px; }
.legal .prose h3 { font-size: 16px; margin-top: 20px; }
.legal-lang { font-size: 13px; color: var(--muted); border-left: 3px solid var(--blue); padding: 8px 0 8px 12px; margin: 0 0 26px; }
.legal-toc { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 16px 20px; margin: 0 0 34px; }
.legal-toc strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.legal-toc li { break-inside: avoid; margin: 0 0 6px; }
.legal-toc a { font-size: 13.5px; color: var(--navy); text-decoration: none; }
.legal-toc a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-id { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 14px; }
.legal-id th { text-align: left; width: 36%; padding: 9px 12px 9px 0; color: var(--muted); font-weight: 600; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-id td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 13.5px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg); font-weight: 700; color: var(--navy); }
@media (max-width: 560px) { .legal-id th { width: 42%; } }
.legal .muted { margin-bottom: 26px; }

/* home blog section */
.blog-home { background: var(--white); border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 1023px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .post-body { grid-template-columns: 1fr; gap: 32px; padding-top: 70px; }
  .post-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .service-row-media { min-height: 220px; }
  .service-row-body { padding: 28px; }
}
@media (max-width: 767px) {
  .page-hero { min-height: 240px; }
  .page-hero-inner { padding-top: 44px; padding-bottom: 36px; }
  .page-hero h1 { font-size: 30px; }
  .post-grid { grid-template-columns: 1fr; }
  .feature-grid, .values-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 16px; }
  .contact-form { padding: 22px; }
  .contact-form .btn { width: 100%; justify-content: center; }
  .post-cover { transform: translateY(24px); aspect-ratio: 16/10; }
  .post-body { padding-top: 50px; }
  .post-header { padding-top: 30px; }
  .service-row-body h2 br { display: none; }
}

/* =========================================================
   v2: breadcrumbs, steps, FAQ, timeline, post shell, media
   ========================================================= */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 14px; color: rgba(255,255,255,.7); }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs span:last-child { color: var(--white); font-weight: 600; }
.crumbs-dark, .legal .crumbs { color: var(--muted); }
.crumbs-dark span:last-child, .legal .crumbs span:last-child { color: var(--navy); }
.crumbs-dark a:hover { color: var(--blue); }
.service-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.service-nav .chip { display: inline-flex; align-items: center; gap: 8px; }
.service-nav .chip .ico { width: 15px; height: 15px; }
.service-nav .chip br { display: none; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.check-list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); }
.check-list li::after { content: ""; position: absolute; left: 4.5px; top: 8px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.steps li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--blue); transition: width .6s var(--ease-out); }
.steps li:hover::after { width: 100%; }
.step-num { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--blue); }
.steps strong { font-size: 17px; color: var(--navy); }
.steps span:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 0 20px; transition: box-shadow .3s; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; color: var(--navy); font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { width: 18px; height: 18px; transition: transform .3s; flex-shrink: 0; color: var(--blue); }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-item p { padding: 0 0 18px; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.timeline { position: relative; padding-left: 28px; display: flex; flex-direction: column; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); }
.tl-year { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--blue); }
.timeline strong { font-size: 16px; color: var(--navy); }
.timeline span:last-child { font-size: 14px; color: var(--muted); }
.values-6 { grid-template-columns: repeat(3, 1fr); }
.list-tools { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 26px; flex-wrap: wrap; }
.list-tools .filter-bar { margin-bottom: 0; }
.chip small { opacity: .6; font-weight: 500; margin-left: 2px; }
.search-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 12px 6px 14px; min-width: 260px; }
.search-form .ico { width: 16px; height: 16px; color: var(--muted); }
.search-form input { border: 0; outline: none; font: inherit; font-size: 14px; background: transparent; flex: 1; color: var(--text); }
.results-note { margin: -10px 0 20px; color: var(--muted); font-size: 14px; }
.post-grid.has-big .post-card-big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.post-card-big .post-card-img { aspect-ratio: auto; min-height: 320px; }
.post-card-big .post-card-body { padding: 34px; justify-content: center; }
.post-card-big h3 { font-size: 26px; }
.post-card-big p { font-size: 15px; flex: 0; }
.post-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.author-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-ph { display: inline-flex; align-items: center; justify-content: center; background: #e6eef9; color: var(--navy); font-weight: 700; font-size: 14px; }
.author-chip .avatar { width: 28px; height: 28px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.byline .avatar { width: 40px; height: 40px; }
.byline strong { display: block; font-size: 14px; color: var(--navy); }
.byline span { font-size: 12.5px; color: var(--muted); }
.preview-bar { background: #6b3fd6; color: #fff; text-align: center; font-size: 13px; padding: 8px; }
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 200; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .1s linear; }
.post-body { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 56px; padding-top: 80px; padding-bottom: 60px; justify-content: space-between; }
.post-body.no-cover { padding-top: 40px; }
.post-main { min-width: 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--white); }
.toc strong { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.toc a { font-size: 13.5px; color: var(--text); display: block; padding: 2px 0 2px 10px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--blue); border-color: var(--blue); }
.toc li.toc-h3 a { padding-left: 22px; font-size: 13px; color: var(--muted); }
.toc-inline { display: none; margin-bottom: 26px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.author-card { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); margin: 10px 0 30px; }
.author-card .avatar { width: 56px; height: 56px; font-size: 20px; }
.author-card strong { display: block; font-size: 16px; color: var(--navy); }
.author-role { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.author-card p { font-size: 14px; color: var(--text); margin: 0 0 8px; line-height: 1.55; }
.author-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.post-nav-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .3s; }
.post-nav-item:hover { border-color: var(--navy); transform: translateY(-2px); }
.post-nav-item span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-nav-item strong { font-size: 14px; color: var(--navy); }
.post-nav-item.is-next { text-align: right; }
.share button.is-done { background: #1d9a6c; border-color: transparent; color: #fff; }
.prose .video-wrap, .prose .embed { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; margin: 26px 0; }
.prose .video-wrap iframe, .prose .video-wrap video, .prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .embed { background: var(--bg-soft); }
.prose .gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.prose .gallery-3 { grid-template-columns: repeat(3, 1fr); }
.prose .gallery img { margin: 0; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }
.prose .callout { padding: 18px 22px; border-radius: 12px; background: #e9f1fd; border-left: 4px solid var(--blue); margin: 26px 0; }
.prose .callout p:last-child { margin: 0; }
.prose .callout-warn { background: #fff5e0; border-color: #e0a100; }
.prose .callout-ok { background: #e6f7ef; border-color: #1d9a6c; }
.prose .table-wrap { overflow-x: auto; margin: 22px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--navy); }
.prose .file-card { display: inline-flex; gap: 8px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--navy); font-weight: 600; text-decoration: none; }
.prose .btn { text-decoration: none; }
.prose .align-center { text-align: center; }
.prose mark { background: #fff2a8; padding: 0 3px; border-radius: 3px; }
.prose audio { width: 100%; margin: 16px 0; }
.prose h2, .prose h3 { scroll-margin-top: 100px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4,16,40,.92); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; animation: fadeIn .25s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.contact-card .social { border: 0; padding: 0; margin-top: 4px; }
.contact-card-light { background: var(--white); border: 1px solid var(--line); margin-top: 16px; }
.contact-card-light .check-list { margin: 0; }
.row-btns.center { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.center-block .btn { margin-top: 0; }

@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .values-6 { grid-template-columns: 1fr 1fr; }
  .toc-sticky { display: none; }
  .toc-inline { display: block; }
  .post-grid.has-big .post-card-big { grid-template-columns: 1fr; }
  .post-card-big .post-card-img { min-height: 0; aspect-ratio: 16/9; }
}
@media (max-width: 767px) {
  .steps, .steps-3, .values-6 { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.is-next { text-align: left; }
  .author-card { flex-direction: column; gap: 12px; }
  .list-tools { flex-direction: column; }
  .search-form { width: 100%; min-width: 0; }
  .post-card-big .post-card-body { padding: 20px; }
  .post-card-big h3 { font-size: 20px; }
  .crumbs { font-size: 12px; }
}

/* market indicators */
.market { background: var(--navy-900); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.market-inner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 22px; }
.market-head { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; min-width: 150px; }
.market-head .eyebrow { color: var(--blue-light); margin: 0; }
.market-head small { font-size: 11px; color: rgba(255,255,255,.55); }
.market-track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.market-track::-webkit-scrollbar { display: none; }
.mk { flex: 0 0 auto; min-width: 150px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 2px; }
.mk-code { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
.mk-code small { text-transform: none; letter-spacing: 0; opacity: .6; }
.mk strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.mk em { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.6); }
.mk em.up { color: #7de2b3; } .mk em.down { color: #ff9f95; }
.market-skel { flex: 0 0 150px; height: 66px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* service page */
.svc-overview .muted { margin: 12px 0 22px; font-size: 16px; line-height: 1.7; }
.svc-includes { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.svc-includes h3 { margin-bottom: 14px; }
.values-3 { grid-template-columns: repeat(3, 1fr); }
.service-row-body h2 a:hover { color: var(--blue); }
@media (max-width: 1023px) { .values-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .market-inner { flex-direction: column; align-items: stretch; gap: 10px; } .market-head { flex-direction: row; justify-content: space-between; align-items: baseline; } .values-3 { grid-template-columns: 1fr; } .mk { min-width: 130px; } }

/* =========================================================
   ROUND3 FIXES: post/case body must stack on tablet/mobile (overrides the later two-column rule)
   ========================================================= */
@media (max-width: 1023px) {
  .post-body { display: block; }
  .post-body > * { min-width: 0; max-width: 100%; }
  .post-main { width: 100%; }
  .post-aside { width: 100%; max-width: none; position: static; margin-top: 28px; }
  .post-aside .toc-sticky { display: none; }
}

/* =========================================================
   ROUND4: "Como funciona" steps become a vertical stepper on mobile
   ========================================================= */
@media (max-width: 767px) {
  .steps, .steps-3 { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 52px; }
  .steps::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(180deg, var(--blue) 0%, rgba(30,100,200,.25) 100%); border-radius: 2px; }
  .steps li { position: relative; overflow: visible; padding: 16px 18px; margin-bottom: 14px; border-radius: 14px; }
  .steps li:last-child { margin-bottom: 0; }
  .steps li::after { display: none; }
  .steps li::before { content: ""; position: absolute; left: -33px; top: 22px; width: 10px; height: 2px; background: rgba(30,100,200,.35); }
  .steps .step-num { position: absolute; left: -52px; top: 8px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--blue); border: 2px solid var(--blue); font-size: 12px; letter-spacing: .06em; box-shadow: 0 6px 16px rgba(11,42,91,.12); }
  .steps li:first-child .step-num { background: var(--blue); color: var(--white); }
  .steps strong { font-size: 16px; }
  .steps span:last-child { font-size: 13px; }
}

/* =========================================================
   ROUND4B: full-width post cover, clickable inline TOC with active state, author card header row
   ========================================================= */
.post-cover { margin-left: 0; margin-right: 0; width: 100%; }
@media (max-width: 767px) { .post-cover { aspect-ratio: 16/10; border-radius: 14px; } }
.toc-inline { padding: 16px 16px 12px; background: var(--white); }
.toc-inline strong { margin-bottom: 8px; }
.toc-inline ol { gap: 4px; }
.toc-inline a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; border-left-width: 1px; color: var(--navy); font-weight: 500; font-size: 14px; background: var(--bg-soft); position: relative; }
.toc-inline a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(31,95,191,.35); flex: 0 0 auto; transition: background .2s, transform .2s; }
.toc-inline a::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .5; }
.toc-inline a:active { transform: scale(.99); }
.toc-inline a.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.toc-inline a.is-active::before { background: var(--accent, #c5e1ff); transform: scale(1.25); }
.toc-inline a.is-active::after { opacity: .9; }
.toc-inline li.toc-h3 a { padding-left: 24px; font-size: 13px; }
.author-card { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 0; align-items: center; }
.author-card .avatar { grid-column: 1; grid-row: 1 / 3; }
.author-card > div { display: contents; }
.author-card strong { grid-column: 2; grid-row: 1; align-self: end; }
.author-card .author-role { grid-column: 2; grid-row: 2; align-self: start; }
.author-card p { grid-column: 1 / -1; grid-row: 3; margin: 14px 0 6px; }
.author-card .author-link { grid-column: 1 / -1; grid-row: 4; }
@media (max-width: 767px) { .author-card { flex-direction: unset; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 18px; } .author-card .avatar { width: 48px; height: 48px; font-size: 18px; } }
/* market widget header: title and "updated" note stacked, never fighting for one line */
@media (max-width: 767px) { .market-head { flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; } .market-head small { line-height: 1.4; white-space: normal; } }

/* =========================================================
   BLOG v2: live market strip in the header + editorial hero
   ========================================================= */
.mkt-strip { background: #071c3f; color: #fff; font-size: 12px; position: relative; z-index: 101; }
.mkt-strip-inner { display: flex; align-items: center; gap: 14px; height: 38px; overflow: hidden; }
.mkt-live { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.mkt-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: mktPulse 2s infinite; }
@keyframes mktPulse { 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.mkt-rail { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; white-space: nowrap; }
.mkt-rail::-webkit-scrollbar { display: none; }
.mkt-item { display: inline-flex; align-items: baseline; gap: 6px; flex: 0 0 auto; }
.mkt-item b { font-weight: 700; color: #fff; font-size: 12.5px; }
.mkt-item span { color: rgba(255,255,255,.6); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.mkt-item em { font-style: normal; font-size: 11px; font-weight: 600; }
.mkt-item em.up { color: #4ade80; } .mkt-item em.down { color: #fca5a5; }
.mkt-when { flex: 0 0 auto; color: rgba(255,255,255,.45); font-size: 11px; }
.mkt-skel { flex: 0 0 auto; width: 92px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.18), rgba(255,255,255,.08)); background-size: 200% 100%; animation: mktSkel 1.4s linear infinite; }
@keyframes mktSkel { to { background-position: -200% 0; } }
@media (max-width: 767px) { .mkt-when { display: none; } .mkt-strip-inner { gap: 10px; height: 34px; } .mkt-rail { gap: 16px; } }

.site-header-blog { top: 0; }
.site-header-blog .header-actions { margin-left: auto; }

/* ===== BLOG: SEM HERO =====
   A noticia grande e as abas sao o destaque. O topo so aparece numa busca ou tag. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.blog-lede { border-bottom: 1px solid var(--line); background: #fff; }
.blog-lede-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: clamp(26px, 3.4vw, 42px); padding-bottom: clamp(18px, 2.2vw, 26px); }
.blog-lede h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; color: var(--navy); margin: 0; text-wrap: balance; }
.blog-lede h1 span { color: inherit; }
.blog-lede-n { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.section-list { padding-top: clamp(26px, 3.4vw, 44px); }
.section-list.has-lede { padding-top: clamp(24px, 3vw, 36px); }
@media (max-width: 600px) {
  .blog-lede-inner { padding-top: 20px; padding-bottom: 14px; }
  .blog-lede-n { display: none; }
}

/* ===== BUSCA NO CABECALHO ===== */
.hdr-search { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.hdr-search:hover { border-color: #bcd0ea; background: #fff; box-shadow: 0 6px 18px rgba(11,42,91,.08); }
.hdr-search .ico { width: 17px; height: 17px; color: var(--blue); flex: 0 0 auto; }
.hdr-search > span { flex: 1 1 auto; text-align: left; white-space: nowrap; }
.hdr-search-k { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.hdr-search-k span { font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 4px 5px; }
@media (min-width: 901px) {
  .site-header-blog .header-inner { position: relative; }
  .hdr-search { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(400px, 32vw); }
}
@media (max-width: 900px) {
  .hdr-search { margin-left: auto; width: 40px; padding: 0; justify-content: center; }
  .hdr-search > span, .hdr-search-k { display: none; }
  .site-header-blog .header-actions { margin-left: 8px; }
}

/* ===== PALETA DE BUSCA (Ctrl+K) ===== */
.spal { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding: clamp(12px, 9vh, 110px) 16px 16px; }
.spal[hidden] { display: none; }
.spal-backdrop { position: absolute; inset: 0; background: rgba(4,16,40,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: spalFade .18s ease-out; }
.spal-panel { position: relative; width: min(660px, 100%); max-height: min(620px, 84dvh); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 90px rgba(4,16,40,.35), 0 2px 6px rgba(4,16,40,.12); overflow: hidden; animation: spalIn .22s cubic-bezier(.22,1,.36,1); }
@keyframes spalFade { from { opacity: 0; } }
@keyframes spalIn { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .spal-backdrop, .spal-panel { animation: none; } }

.spal-field { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.spal-field .ico { width: 19px; height: 19px; color: var(--blue); flex: 0 0 auto; }
.spal-field input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16.5px; color: var(--navy); padding: 18px 0; }
.spal-field input::placeholder { color: #9aa8bd; }
.spal-field input::-webkit-search-cancel-button { display: none; }
.spal-esc { flex: 0 0 auto; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.spal-esc:hover { color: var(--navy); border-color: #bcd0ea; }

.spal-results { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px; -webkit-overflow-scrolling: touch; }
.spal-item { display: block; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: inherit; }
.spal-item + .spal-item { margin-top: 2px; }
.spal-item.is-active, .spal-item:hover { background: #eef4ff; }
.spal-item-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.spal-item-top time { color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 11.5px; }
.spal-item-top i { width: 3px; height: 3px; border-radius: 50%; background: #c3cfe0; font-style: normal; }
.spal-item strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--navy); margin-bottom: 3px; }
.spal-item p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spal-item mark { background: #d9e8ff; color: inherit; border-radius: 3px; padding: 1px 0; box-shadow: 0 0 0 1.5px #d9e8ff; }
.spal-msg { padding: 34px 18px 38px; text-align: center; color: var(--muted); font-size: 14px; }
.spal-msg strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.spal-skel { height: 58px; border-radius: 12px; margin: 2px 0; background: linear-gradient(90deg, #f1f5fb, #e6edf8, #f1f5fb); background-size: 200% 100%; animation: mktSkel 1.3s linear infinite; }

.spal-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12px; color: var(--muted); }
.spal-keys { display: inline-flex; align-items: center; gap: 5px; }
.spal-foot kbd { font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 4px 6px; color: var(--navy); }
.spal-all { font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; }
.spal-all:hover { text-decoration: underline; }
.spal-all[hidden] { display: none; }
/* no mobile todo modal e um drawer de baixo (padrao Vaul) */
.spal-handle { display: none; justify-content: center; padding: 9px 0 3px; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.spal-handle span { width: 44px; height: 5px; border-radius: 999px; background: #d3dbe8; }
.spal.is-dragging, .spal.is-dragging * { -webkit-user-select: none; user-select: none; }
@keyframes spalUp { from { transform: translateY(100%); } }
@media (max-width: 800px) {
  .spal { align-items: flex-end; padding: 0; }
  .spal-panel { width: 100%; max-width: none; max-height: 88dvh; border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: 0 -20px 60px rgba(4,16,40,.32); animation: spalUp .42s cubic-bezier(.32,.72,0,1); transition: transform .42s cubic-bezier(.32,.72,0,1); touch-action: pan-y; }
  .spal.is-closing .spal-panel { transform: translateY(100%); }
  .spal.is-closing .spal-backdrop { opacity: 0; transition: opacity .3s; }
  .spal.is-dragging .spal-panel { transition: none; animation: none; }
  .spal-handle { display: flex; }
  .spal-field { padding: 0 10px 0 18px; }
  .spal-field input { font-size: 16px; padding: 14px 0; }
  .spal-keys { display: none; }
  .spal-foot { justify-content: flex-end; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
html.spal-open { overflow: hidden; }
/* o conteudo da pagina recua atras do drawer */
.page-shell { transition: transform .42s cubic-bezier(.32,.72,0,1), border-radius .42s; transform-origin: 50% 0; }
html.spal-sheet .page-shell { transform: scale(.965) translateY(6px); border-radius: 18px; overflow: hidden; }
@media (min-width: 801px) { html.spal-sheet .page-shell { transform: none; border-radius: 0; overflow: visible; } }
@media (prefers-reduced-motion: reduce) { .page-shell, .spal-panel { transition: none; animation: none; } }

