/* Shared interior chrome — official mark, payments, Let’s Talk, exit-intent.
   Does not restyle page-ink bodies. Homepage keeps home.css. */

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
}
.page-ink .nav-burger { color: #F4F7FB; }
.page-paper .nav-burger { color: #00213D; }
@media (max-width: 960px) {
  .nav-burger { display: flex; }
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
}
.nav-drawer.is-open {
  display: block;
  pointer-events: auto;
}
.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 33, 61, 0.42);
}
.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #fff;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: -16px 0 40px rgba(0, 33, 61, 0.16);
}
.nav-drawer-close {
  align-self: flex-end;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #00213D;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer-links a {
  display: block;
  min-height: 44px;
  padding: 12px 0;
  border-bottom: 1px solid #D5DEE8;
  color: #00213D;
  font-size: 16px;
  font-weight: 700;
}
.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.nav-drawer-actions .nav-quick,
.nav-drawer-actions .nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
body.drawer-open { overflow: hidden; }

img.brand-mark,
img.brand-mark-img,
.page-ink a.brand img.brand-mark,
.page-paper a.brand img.brand-mark {
  display: block;
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0;
  object-fit: contain;
  background: none;
  border-radius: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  padding: 0;
}

.fnf-pay-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.fnf-pay-marks li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 3px 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.fnf-pay-marks li.pay-pill-discover { padding: 4px 10px; }

.fnf-pay-marks .pay-mark {
  display: block;
  width: auto;
  height: 14px;
  object-fit: contain;
}

.fnf-pay-marks .pay-pill-discover .pay-mark { height: 12px; }

.talk-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transform: translateY(-50%);
}

.talk-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #00213D;
  color: #fff;
  font-family: Manrope, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 33, 61, 0.28);
}

.talk-launcher:hover { background: #0A3A66; }

.talk-launcher-dot,
.talk-agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3DDC84;
}

.talk-panel {
  width: min(360px, calc(100vw - 28px));
  max-height: min(420px, calc(100vh - 120px));
  overflow: auto;
  background: #fff;
  border: 1px solid #00213D;
  border-radius: 10px;
  box-shadow: 0 22px 48px rgba(0, 33, 61, 0.22);
}

.talk-panel[hidden] { display: none; }

.talk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #0A3A66 0%, #00213D 100%);
  color: #fff;
}

.talk-agent { display: flex; align-items: center; gap: 10px; }
.talk-agent-label { margin: 0; font-size: 12px; font-weight: 800; }
.talk-agent-status { margin: 2px 0 0; font-size: 11px; color: rgba(255,255,255,0.72); }
.talk-close {
  border: 0;
  background: transparent;
  color: #E8DCC2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.talk-panel-body { padding: 14px; }
.talk-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #00213D; }
.talk-sub, .talk-guard, .talk-prefer, .talk-lead-kicker, .talk-lead-ack {
  margin: 0 0 12px;
  color: #5A6578;
  font-size: 13px;
  line-height: 1.45;
}
.talk-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.talk-shortcuts button {
  padding: 5px 9px;
  border: 1px solid #D5DCE6;
  border-radius: 999px;
  background: #F4F7FB;
  color: #00213D;
  font-size: 11px;
  font-weight: 700;
}
.talk-field { display: block; margin-bottom: 10px; }
.talk-field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5A6578;
}
.talk-field textarea,
.talk-lead input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #D5DCE6;
  border-radius: 6px;
  font: inherit;
  color: #0A0F1C;
}
.talk-ask {
  width: 100%;
  min-height: 40px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 6px;
  background: #C9A04E;
  color: #0A0A0A;
  font-size: 13px;
  font-weight: 800;
}
.talk-people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.talk-people a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #00213D;
  border-radius: 6px;
  color: #00213D;
  font-size: 12px;
  font-weight: 700;
}
.talk-calendly { word-break: normal; }

@media (max-width: 768px) {
  .talk-dock {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    max-height: calc(100dvh - 64px);
  }
  .talk-panel {
    width: min(340px, calc(100vw - 88px));
    max-height: min(360px, calc(100dvh - 132px));
  }
  .talk-launcher { min-height: 44px; }
  .svc-hero-actions,
  .closing-buttons,
  .closing-cta .closing-actions {
    margin-right: 72px;
  }
}

.lang-switch {
  position: relative;
  flex-shrink: 0;
  z-index: 90;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #C9A04E;
  border-radius: 6px;
  background: #fff;
  color: #00213D;
  font-size: 11px;
  font-weight: 800;
}

.lang-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 90;
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #D5DCE6;
  box-shadow: 0 12px 28px rgba(0, 33, 61, 0.16);
}

.lang-switch-menu[hidden] { display: none; }

.lang-switch-menu button {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: #00213D;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.exit-intent {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.exit-intent[hidden] { display: none; }
.exit-intent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 31, 0.62);
}
.exit-intent-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 28px 24px 22px;
  background: linear-gradient(180deg, #0A3A66 0%, #00213D 100%);
  border: 2px solid #C9A04E;
  color: #fff;
}
.exit-intent-mark { width: 40px; height: 40px; margin-bottom: 14px; }
.exit-intent-title { margin: 0 0 10px; font-size: 26px; font-weight: 800; }
.exit-intent-body { margin: 0 0 18px; color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.45; }
.exit-intent-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #C9A04E;
  color: #0A0A0A;
  font-size: 14px;
  font-weight: 800;
}
.exit-intent-dismiss {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
}

/* Same brand chrome at ~390 / ~768 / desktop — interiors */
.talk-dock.is-over-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-ink .nav-inner .brand-sub,
.page-paper .nav-inner .brand-sub,
.nav-inner .brand-sub {
  display: block !important;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-ink .brand-name,
.page-paper .brand-name,
.nav-inner .brand-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .nav-inner > .nav-signin,
  .nav-inner > .nav-quick {
    display: none;
  }
}

#main-nav a.flex span.font-heading {
  display: block !important;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

#main-nav a.btn-primary[href="/apply/"] {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
}

@media (max-width: 420px) {
  .page-ink .brand-text,
  .page-paper .brand-text,
  .brand-text {
    display: flex !important;
  }
  .nav-inner > .nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .lang-switch { z-index: 95; }
  .lang-switch-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
  }
  .lang-switch-menu button {
    min-height: 44px;
    padding: 12px;
  }
  .page-ink .nav-burger,
  .page-paper .nav-burger,
  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  img.brand-mark,
  img.brand-mark-img {
    width: 40px;
    height: 40px;
  }
  .fnf-pay-marks {
    flex-wrap: wrap;
    width: 100%;
  }
  .fnf-pay-marks li.pay-pill-discover {
    padding: 4px 10px;
    background: #fff;
  }
  .talk-people a,
  .talk-ask,
  .talk-calendly,
  .exit-intent-cta {
    min-height: 44px;
  }
  .exit-intent { padding: 16px; }
  body.page-ink,
  body.page-paper {
    overflow-x: clip;
  }
}

@media (max-width: 390px) {
  .talk-people { grid-template-columns: 1fr; }
  .nav-inner { gap: 6px; }
}

/* Compact footer lock — last-loaded on interiors. No !important: sections.css
   no longer ships on interiors, and leftover editorial rules are :has(.footer-grid). */
.page-light .site-footer {
  background: linear-gradient(180deg, #0A3A66 0%, #00213D 52%, #00101F 100%);
  color: #F4F7FB;
  padding: 8px 0 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.page-light .footer-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.page-light .footer-mark img {
  width: 28px;
  height: 28px;
}
.page-light .footer-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.page-light .footer-inline a {
  color: rgba(244, 247, 251, 0.72);
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}
.page-light .footer-inline a:first-child {
  border-left: 0;
  padding-left: 0;
}
.page-light .footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(244, 247, 251, 0.42);
}
