/* Consulta design pass: hero, editorial intro and navigation refinements. */
#main {
  padding-top: 66px;
}

#main > nav.breadcrumb[data-astro-cid-qaanghzh] {
  margin-top: 16px;
}

/* Keep a clear but compact gap between breadcrumbs and the page title. */
#main:has(> nav.breadcrumb) > section.hero.hero--solo[data-astro-cid-bbe6dxrz] {
  padding-top: 16px;
}

section.hero.hero--solo[data-astro-cid-bbe6dxrz] {
  box-sizing: border-box;
  width: calc(100% + 40px);
  margin-inline: -20px;
  padding: 28px 0 32px;
}

.hero--solo[data-astro-cid-bbe6dxrz] > .container[data-astro-cid-bbe6dxrz] {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding-inline: 12px;
}

.hero--solo .hero-content {
  min-width: 0;
  padding-inline: 12px;
}

.hero--solo .hero-content > *,
.hero--solo .container > * {
  min-width: 0;
}

.hero--solo .hero-title,
.hero--solo .hero-subtitle,
.prose h1,
.prose h2,
.prose th,
.prose td {
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: manual;
}

.hero--solo .hero-buttons {
  align-items: flex-start;
}

.hero--solo .hero-buttons > .btn {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  white-space: normal;
}

.hero + .container > .callout:first-child {
  margin-top: 24px;
}

.hero + .container > .illu-wrap:first-child {
  max-width: 340px;
  margin: 24px auto 32px;
}

/* The panel contains only introductory paragraphs, never the article's H2 sections. */
.hero + .container > .prose:first-child {
  box-sizing: border-box;
  width: min(100%, 920px);
  min-width: 0;
  margin: 24px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero + .container > .prose:first-child > p:not(h2 ~ p):has(~ h2) {
  margin: 0;
  padding: 12px 22px;
  border-right: 1px solid #d9e1f3;
  border-left: 4px solid #6d4aff;
  background: #f7f8ff;
}

.hero + .container > .prose:first-child > p:first-child:not(h2 ~ p):has(~ h2) {
  padding-top: 18px;
  border-top: 1px solid #d9e1f3;
  border-radius: 12px 12px 0 0;
}

.hero + .container > .prose:first-child > p:not(h2 ~ p):has(+ h2) {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d9e1f3;
  border-radius: 0 0 12px 12px;
}

.hero + .container > .prose:first-child > p:not(h2 ~ p):has(+ h2) + h2 {
  margin-top: 24px;
}

.navbar-menu a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}

.navbar-menu a:hover,
.navbar-menu a:focus-visible,
.mobile-drawer-inner > a:hover,
.mobile-drawer-inner > a:focus-visible {
  color: var(--purple);
  background: var(--purple-lt);
}

.navbar-menu a:focus-visible,
.mobile-drawer-inner > a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.mobile-drawer-inner > a {
  display: block;
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}

.navbar-container > *,
.mobile-drawer-inner > * {
  min-width: 0;
}

/* Keep the fifth home service card in the same responsive grid. */
.sc-section.sg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sc-section.sg > h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.sc-section.sg > .sg-grid {
  display: contents;
}

.sc-section.sg > .sg-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: var(--spacing-lg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.sc-section.sg > .sg-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sc-section.sg > .sg-card strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.sc-section.sg > .sg-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.sc-section.sg > .sg-card .sg-more {
  color: var(--purple);
  font-size: 14px;
  font-weight: 700;
}

/* A centered, content-sized contact panel avoids a large blank frame. */
.contact {
  width: min(100%, 760px);
  margin-right: auto;
  margin-left: auto;
}

.contact[data-astro-cid-svshx33u] {
  width: min(100%, 520px);
  margin-right: auto;
  margin-left: auto;
}

/* Keep the brand visible; footer link styles are consolidated below. */
.ft-brand {
  visibility: visible;
}

.footer .ft-col a[data-astro-cid-sz7xmlte],
.footer + .scdn-legal-footer a {
  color: #a78bfa;
}

.footer + .scdn-legal-footer {
  padding: 14px 24px 18px;
  background: #141329;
  color: #c7c6d5;
  font-size: 12px;
  line-height: 1.6;
}

.footer + .scdn-legal-footer p {
  max-width: 1200px;
  margin: 0 auto 8px;
  color: #c7c6d5;
}

/* Let long official portal URLs wrap inside the apostille step card. */
.ps-body,
.ps-body p {
  min-width: 0;
}

.ps-body p {
  overflow-wrap: anywhere;
}

body:has(.ps-body) .prose p:has(> strong) {
  min-width: 0;
}

body:has(.ps-body) .prose p:has(> strong) > strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .sc-section.sg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sc-section.sg {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer + .scdn-legal-footer {
    padding-inline: 16px;
  }

  .ft-bottom-inner[data-astro-cid-sz7xmlte] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
  }

  .ft-editorial-note[data-astro-cid-sz7xmlte] {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
  }

  .ft-lang-switch[data-astro-cid-sz7xmlte] {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 900px) {
  .navbar-menu[data-astro-cid-dmqpwcec],
  .navbar-actions[data-astro-cid-dmqpwcec] {
    display: none;
  }

  .burger[data-astro-cid-dmqpwcec] {
    display: flex;
  }

  .mobile-drawer[data-astro-cid-dmqpwcec] {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero--solo .hero-title {
    font-size: clamp(26px, 7.6vw, 32px);
    line-height: 1.14;
  }
}

@media (max-width: 640px) {
  section.hero.hero--solo[data-astro-cid-bbe6dxrz] {
    padding: 28px 0;
  }

  .hero--solo[data-astro-cid-bbe6dxrz] > .container[data-astro-cid-bbe6dxrz] {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }

  .hero--solo .hero-content {
    padding-inline: 20px;
  }

  .hero--solo .hero-buttons {
    align-items: stretch;
  }

  .hero--solo .hero-buttons > .btn {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    align-self: stretch;
  }

  .hero + .container > .illu-wrap:first-child {
    max-width: 300px;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .hero + .container > .prose:first-child > p:not(h2 ~ p):has(~ h2) {
    padding: 12px 18px;
  }

  .hero + .container > .prose:first-child > p:first-child:not(h2 ~ p):has(~ h2) {
    padding-top: 16px;
  }

  .hero + .container > .prose:first-child > p:not(h2 ~ p):has(+ h2) {
    padding-bottom: 16px;
  }
}


@media (min-width: 1025px) {
  .cta-inline[data-astro-cid-yblyaiu5] .cta-inline-btn[data-astro-cid-yblyaiu5] {
    width: fit-content;
    min-width: 0;
    flex: 0 0 auto;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .contact[data-astro-cid-svshx33u] {
    box-sizing: border-box;
    width: calc(100% - 8px);
    margin-left: 4px;
    margin-right: 4px;
  }
}

.lead-form[data-astro-cid-svshx33u][data-astro-cid-svshx33u]{grid-template-columns:minmax(0,1fr)}
.lead-form[data-astro-cid-svshx33u] label[data-astro-cid-svshx33u]{grid-template-columns:minmax(0,1fr);min-width:0}
.lead-form[data-astro-cid-svshx33u] label[data-astro-cid-svshx33u]>*,.lead-form[data-astro-cid-svshx33u]>*{min-width:0;max-width:100%;box-sizing:border-box}
body .footer.footer .ft-col ul li a:is(a,a[data-astro-cid-sz7xmlte]){font-size:14px;color:#d6d3e8}
body .footer.footer .ft-col ul li a:hover{color:#fff}
body .footer.footer .ft-col .ft-col-second{margin-top:0}
.footer.footer[data-astro-cid-sz7xmlte]{padding-inline:0}
body section.cta-final.cta-final[data-astro-cid-l53vqjpo]{margin-inline:-20px;width:auto;max-width:none;box-sizing:border-box}
@media(min-width:1025px){nav.breadcrumb[data-astro-cid-qaanghzh]{padding-inline:max(44px,calc((100% - 1152px)/2))}}
@media(min-width:641px){body .footer + .scdn-legal-footer.scdn-legal-footer{padding-inline:40px}}
@media(max-width:480px){.contact[data-astro-cid-svshx33u] .lead-form input:not([type=hidden]){padding-inline:10px}}
@media(max-width:480px) and (max-height:800px){body #scdn-banner#scdn-banner{max-height:60vh}}
.ft-col:has(>.ft-contact-list):not(:has(.ft-contact-list li))>h3:first-child,.ft-contact-list:not(:has(li)){display:none}
.prose p,.prose li,.prose dd{overflow-wrap:anywhere}
nav.breadcrumb[data-astro-cid-qaanghzh] ol[data-astro-cid-qaanghzh] li[data-astro-cid-qaanghzh],nav.breadcrumb[data-astro-cid-qaanghzh] li[data-astro-cid-qaanghzh] *{white-space:normal;max-width:100%;overflow:visible;text-overflow:clip;min-width:0}
