:root {
  --brand-navy: #071949;
  --brand-navy-rgb: 7, 25, 73;
  --brand-gold-rgb: 177, 145, 93;
  --brand-line: #dcd6cb;
  --brand-muted: #595959;
  --brand-surface: #f8f6f1;
  --booking-blue: var(--brand-navy);
  --booking-hover: var(--brand-navy-2);
  --brand-navy-2: #0e2a6b;
  --brand-gold: #b1915d;
  --brand-gold-light: #ddc18e;
}

/* The last nav item occupies the former 2px border. Keep the navy edge outside its box. */
#header .header {
  border-bottom: 0;
  box-shadow: 0 1px var(--brand-navy);
}

/* Keep the wordmark in the space reserved for the fixed header. */
:is(#header, body > .header) .logo img {
  height: 69px;
  width: 205px;
}

@media (min-width: 992px) {
  #header .navbar-nav > li > a.booking-action {
    min-height: 46px;
  }

  #header .header:not(.header-compact) {
    display: flex;
    flex-direction: column;
    min-height: 119px;
  }

  #header .navbar {
    margin-top: auto;
  }

  #header .header:not(.header-compact) .extra2 .extra {
    padding-bottom: 0 !important;
    margin-bottom: 4px;
  }
}

/* The compact header's original logo occupied 66/375 of its responsive width. */
@media (max-width: 991px) {
  :is(#header .header-compact, body > .header-compact) .logo img {
    width: auto;
    height: min(68.64px, calc((100vw - 30px) * .1584));
    aspect-ratio: 1072.44 / 360.62;
  }
}

@media (max-width: 991px) {
  #header .header:has(.navbar-collapse.collapse:not(.in)) {
    border-bottom: 2px solid var(--brand-navy);
  }

  /* Transfer the old list margin and border into the open menu's last button. */
  #header .navbar-nav { margin-bottom: 0; }
  #header .navbar-nav > li > a.booking-action { min-height: 51px; }

  body.boxed-layout:has(#header > .header) {
    padding-top: 137px;
  }
}

@media (max-width: 767px) {
  :is(#header, body > .header) .logo img {
    height: 55px;
    width: 164px;
  }

  /* Two lines of phone text still fit the 44px navigation row on narrow phones. */
  #header .navbar-phone-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    line-height: 1.25;
  }

  body.boxed-layout:has(#header > .header) {
    padding-top: 123px;
  }
}

.sx-hero {
  background: var(--brand-navy);
}

.sx-hero::before,
.sx-close {
  background: linear-gradient(115deg, var(--brand-navy), var(--brand-navy-2));
}

/* The portrait spans the name and role rows. The description sizes its own row below it. */
.sx-hero .sx-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto auto;
}

.sx-hero .sx-photo picture {
  grid-area: 1 / 1 / 4;
  position: relative;
  display: block;
}

.sx-hero .sx-portrait-caption {
  grid-area: 2 / 1 / 5;
  display: grid;
  grid-template-rows: subgrid;
  padding: 0;
  --portrait-fade: 10px;
  background: linear-gradient(to bottom, transparent, rgba(var(--brand-navy-rgb), .85) var(--portrait-fade), var(--brand-navy));
}

.sx-hero .sx-portrait-caption b {
  padding: var(--portrait-fade) 16px 0;
  font-size: 22px;
}

.sx-hero .sx-portrait-caption .sx-role {
  margin: 0;
  padding: 2px 16px 7px;
  font-size: 13px;
  line-height: 1.25;
}

.sx-hero .sx-portrait-caption span:last-child {
  padding: 9px 16px;
  border-top: 1px solid var(--brand-gold);
  background: var(--brand-navy);
  font-size: 14px;
  line-height: 1.45;
}

/* Give longer translations more room while keeping the role on the portrait. */
.sx-hero:not(:lang(en)) .sx-portrait-caption { --portrait-fade: 5px; }
.sx-hero:not(:lang(en)) .sx-portrait-caption b { font-size: 20px; }
.sx-hero:not(:lang(en)) .sx-portrait-caption .sx-role {
  padding-block: 2px;
  font-size: 12.5px;
}
.sx-hero:not(:lang(en)) .sx-portrait-caption span:last-child {
  padding-block: 10px;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .sx-hero:not(:lang(en)) .sx-chips { gap: 6px; }
  .sx-hero:not(:lang(en)) .sx-chip { padding-inline: 8px; font-size: 14px; }
  .sx-hero .sx-photo img { aspect-ratio: 8 / 7; }
}

@media (min-width: 768px) {
  .sx-hero:not(:lang(en)) .sx-sub { max-width: none; }
  .sx-hero:not(:lang(en)) .sx-cta .sx-btn { padding-inline: 14px; font-size: 16px; }
}

@media (min-width: 992px) {
  .sx-hero .sx-ledger {
    grid-template-columns: repeat(3, auto);
    padding-inline: 24px;
  }

  .sx-hero .sx-fact {
    padding-inline: 12px;
    column-gap: 10px;
  }

  .sx-hero .sx-start {
    display: grid;
    padding-inline: 24px;
  }

  .sx-hero .sx-chips { gap: 6px; }
  .sx-hero .sx-chip { padding-inline: 8px; font-size: 14px; line-height: 18px; }

  .sx-hero:not(:lang(en)) .sx-inner { grid-template-columns: minmax(0, 1fr) 36%; }
  .sx-hero:not(:lang(en)) .sx-copy { padding-inline: 16px; }
}

@media (min-width: 1200px) {
  .sx-hero:not(:lang(en)) .sx-inner { grid-template-columns: minmax(0, 1fr) 39%; }
  .sx-hero:not(:lang(en)) .sx-fact b { font-size: 21px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .sx-hero .sx-copy { padding: 28px 20px 16px 28px; }
  .sx-hero .sx-cta { flex-wrap: nowrap; }
  .sx-hero:not(:lang(en)) .sx-sub { font-size: 16px; line-height: 1.5; }

  /* Give each description the full cell width beneath the icon and heading. */
  .sx-hero .sx-ledger { padding-inline: 16px; }
  .sx-hero .sx-fact { grid-template-columns: 32px 1fr; padding: 12px 8px; }
  .sx-hero .sx-fact .sx-ico { grid-row: 1; width: 32px; height: 32px; }
  .sx-hero .sx-fact b { align-self: center; font-size: 20px; }
  .sx-hero .sx-fact span { grid-column: 1 / -1; }

  .sx-hero .sx-start { padding: 12px 18px; }
  .sx-hero .sx-chips { gap: 4px; }
  .sx-hero .sx-chip { padding-inline: 4px; }
}

.sx-ledger {
  background: rgba(0, 0, 0, .20);
  border-top-color: var(--brand-gold);
}

.sx-close {
  border-block-color: var(--brand-gold);
}

#faq-home,
#faq-home > div {
  background-color: var(--brand-navy) !important;
}

/* booking-actions.css reads these colors on both normal and interactive states. */
.ux-quick {
  --booking-blue: var(--brand-navy);
  --booking-hover: var(--brand-navy-2);
}

.header .navbar-nav a.booking-action,
:is(.sx-hero, .sx-close) a.sx-btn.sx-btn-p {
  --booking-blue: var(--brand-gold-light);
  --booking-hover: #e8d3a8;
  color: var(--brand-navy) !important;
}

.header .navbar-nav a.booking-action:focus-visible,
:is(.sx-hero, .sx-close) a.sx-btn-p:focus-visible {
  outline-color: var(--brand-navy) !important;
  outline-offset: -4px !important;
}

:is(.sx-hero, .sx-close) a.sx-btn-s {
  border-color: #fff;
}

form .btn-u,
#submit_btn,
.sx-done-actions a.sx-done-book {
  background-color: var(--brand-navy) !important;
  color: #fff !important;
}

:is(form .btn-u, #submit_btn, .sx-done-actions a.sx-done-book):is(:hover, :focus, :active, .active) {
  background-color: var(--brand-navy-2) !important;
}

/* Each office keeps its address and directions available before the maps load. */
.office-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.office-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--brand-line);
  border-top: 3px solid var(--brand-gold);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.office-details {
  flex: 1;
  padding: 16px;
}

.office-details h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
  color: var(--brand-navy);
}

.office-badge {
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--brand-gold-light);
  font-size: 12px;
  font-weight: 700;
}

.office-details address {
  margin: 0 0 8px;
  line-height: 1.5;
}

.office-card .office-details a {
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-details a:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: 2px;
}

.office-map {
  height: 210px;
  border-bottom: 0;
}

@media (max-width: 767px) {
  .office-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-map {
    display: none;
  }
}

/* Shared navigation, article links and calls to action. */
body a, body a:link,
.header a.phone-action,
.header .mega-menu .mega-menu-cat,
.header .mega-menu-content li > span,
#contact-sidebar a,
.sx-intro .sx-intro-text a,
.sx-intro .sx-intro-links a {
  color: var(--brand-navy);
}

body a:is(:hover, :focus, :active),
.header .navbar-nav > li:is(:hover, .open, .active) > a {
  color: var(--brand-navy-2);
}

.header .navbar-default .navbar-nav > li > a:hover,
.header .navbar-nav > li:is(.open, .active) > a,
.header .dropdown-menu, .header .mega-menu-content,
.header .languages {
  border-color: var(--brand-gold);
}

.header .navbar-toggle:is(:hover, :focus) .icon-bar {
  background-color: #fff;
}

body .btn-u, body .btn-u-blue, body a.booking-action.btn-u,
body .seo-refresh a.seo-cta, body .sx-intro .sx-btn,
body .sx-ig-cta a, body [style*="#f0f7fd"] a.booking-action,
body [style*="#f2fcf9"] a.booking-action {
  background-color: var(--brand-navy) !important;
  color: #fff !important;
}

body :is(.btn-u, .btn-u-blue, .seo-cta):is(:hover, :focus),
body .sx-intro .sx-btn:is(:hover, :focus), body .sx-ig-cta a:is(:hover, :focus) {
  background-color: var(--brand-navy-2) !important;
}

.sx-hero {
  --ink: var(--brand-navy);
  --navy: var(--brand-navy);
  --mid: var(--brand-navy-2);
  --cta: var(--brand-navy);
  --cta-h: var(--brand-navy-2);
  --paper: var(--brand-surface);
}

.sx-hero .sx-notice,
.sx-hero .sx-notice:link,
.sx-hero .sx-notice b {
  background-color: var(--brand-navy);
  color: var(--brand-gold-light);
}

.sx-hero .sx-notice:is(:hover, :focus-visible) {
  text-decoration: underline;
}

.sx-hero .sx-sub, .sx-hero .sx-fact span, .sx-hero .sx-reviews,
.sx-panel p, .sx-panel .sx-row p {
  color: #fff !important;
}

.sx-hero .sx-fact .sx-ico, .sx-panel .sx-ico2, .sx-panel .sx-tag {
  background: rgba(var(--brand-gold-rgb), .16);
  border-color: var(--brand-gold);
  color: var(--brand-gold-light) !important;
}

.sx-panel .sx-ico2 i { color: var(--brand-gold-light); }
.sx-hero .sx-start { background-color: var(--brand-surface); }
.sx-hero .sx-start p, .sx-hero .sx-start .sx-chip { color: var(--brand-navy) !important; }
.sx-hero .sx-chip { border-color: var(--brand-gold); }
.sx-hero .sx-plate span { color: var(--brand-navy); }

body .sx-panel {
  background-color: var(--brand-navy) !important;
  border-left-color: var(--brand-gold);
}
.sx-panel::after { background: rgba(var(--brand-navy-rgb), .90); }
.sx-panel .sx-rule { background: var(--brand-gold); }
.sx-intro .sx-band::before {
  background: linear-gradient(rgba(var(--brand-navy-rgb), .78), rgba(var(--brand-navy-rgb), .84));
}
.sx-intro .sx-band .sx-kicker { color: #fff; }
.sx-intro .sx-motto {
  background: var(--brand-surface);
  border-top-color: var(--brand-gold);
}
.sx-intro .sx-motto::before, .sx-intro .sx-motto::after { color: var(--brand-gold); }

/* The legacy bundles use these inline swatches as layout selectors. */
body [style*="#f0f7fd"], body [style*="#f2fcf9"] {
  background-color: var(--brand-surface) !important;
}

#contact-sidebar a:is(:link, :hover, :focus),
.header .navbar-phone-mobile.phone-action {
  color: var(--brand-navy) !important;
}

body .seo-dark a:not(.booking-action),
body .sx-panel a:not(.booking-action),
#footer .footer a, #footer .copyright a,
#footer .footer .list-unstyled li > span {
  color: var(--brand-gold-light) !important;
}
#footer a:is(:hover, :focus-visible) { text-decoration: underline; }

body .cta-block { background-color: var(--brand-surface); }
.sx-hero .sx-start, .sx-intro .sx-intro-text .sx-motto p,
.title-box .title-box-text :is(h1,h2), .headline :is(h2,h3,h4) {
  color: var(--brand-navy);
}
.sx-intro .sx-band { background-color: var(--brand-navy); }
.sx-panel { color: #fff; }
#sidebar .snav-arrow { color: var(--brand-navy); }
.sx-cta a.sx-call, .sx-close-cta a.phone-action { text-decoration-color: var(--brand-gold-light); }
.sky-form .label .required { color: var(--brand-navy) !important; }
.sky-form :is(input, textarea)::placeholder { color: #595959; opacity: 1; }

#testimonials-4 .carousel-control {
  background-color: var(--brand-navy) !important;
  opacity: 1;
}
#testimonials-4 .carousel-control:is(:hover, :focus-visible) {
  background-color: var(--brand-navy-2) !important;
}
#testimonials-4 .item [style*="#f5a623"] { color: #785717 !important; }

/* Content placed over photography must also read over the brightest crop. */
.brand-photo-shade { background-color: rgba(var(--brand-navy-rgb), .88); }
body .text-highlights-blue { background-color: var(--brand-navy); color: #fff; }
.careers-hero .hero-stats .hero-stat .stat-num { color: var(--brand-gold-light); }
body .job-card-apply p, body .job-card-apply .apply-subject { color: var(--brand-muted); }
body .fail-card .fail-num, body .risk-card .risk-num { color: #fff; }
.seo-refresh [style*="background:var(--brand-navy)"] p > a:not(.booking-action),
[style*="background:var(--brand-navy)"] p > a:not([class]) {
  color: var(--brand-gold-light);
  text-decoration: underline;
}
body .title-box .title-box-text { border-bottom-color: var(--brand-gold); }

/* Theme utilities still referenced by the timeline, carousel and legal pages. */
body #title, body blockquote:hover { border-color: var(--brand-gold); }
body .timeline-v2 > li .cbp_tmicon,
body .owl-btn:is(:hover, :focus-visible), body #topcontrol:hover {
  background-color: var(--brand-navy);
}
body .color-blue, body .color-green, body .privacy a:hover { color: var(--brand-navy); }

/* The naturalization table uses Bootstrap button classes for status labels. */
.content td .btn-success { background-color: var(--brand-navy); border-color: var(--brand-navy); }
.content td .btn-warning {
  background-color: var(--brand-gold-light);
  border-color: var(--brand-gold);
  color: var(--brand-navy) !important;
}
body .blueback { background-color: var(--brand-navy); }
body .sx-intro a:focus-visible { outline-color: var(--brand-navy) !important; }
.sx-intro .sx-band-in { text-shadow: 0 2px 4px var(--brand-navy); }
