/* Marriage & Family: the support page (quick exit, danger panel, statement, helplines by country). */
.fm-exit {
  position: fixed; inset-block-end: 1.1rem; inset-inline-end: 1.1rem; z-index: 1080;
  display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.15rem; min-height: 48px;
  border-radius: 999px; background: #1d2330; color: #fff !important; font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
}
.fm-exit:hover { background: #000; }
[data-theme="dark"] .fm-exit { background: #f2f4f8; color: #111 !important; }

.fm-danger {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center;
  padding: 1.4rem 1.5rem; border-radius: 22px; background: #c2334f; color: #fff; box-shadow: 0 18px 40px -20px rgba(194, 51, 79, .7);
}
.fm-danger-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 1.6rem; }
.fm-danger h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .25rem; color: #fff; }
.fm-danger p, body.dark .fm-danger p { margin: 0; line-height: 1.6; color: rgba(255, 255, 255, .92); }

.fm-statement {
  margin-block-start: 1.5rem; padding: 1.5rem 1.6rem; border-radius: 22px;
  background: var(--lf-card); border: 1px solid var(--lf-card-line); box-shadow: var(--lf-shadow);
}
.fm-statement h2 { font-family: var(--ip-font-display); font-weight: 600; font-size: 1.45rem; margin: 0 0 1rem; }
.fm-statement ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.fm-statement li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; line-height: 1.6; font-size: 1.02rem; }
.fm-statement li i { color: var(--lf-accent); font-size: 1.2rem; }
.fm-statement-note { margin: 1rem 0 0; color: var(--lf-muted); font-size: .93rem; }

.fm-region-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block-end: 1.25rem; }
.fm-region-pick label { font-weight: 600; }
.fm-region-pick select { max-width: 320px; border-radius: 12px; min-height: 44px; }
.fm-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; }
.fm-region { background: var(--lf-card); border: 1px solid var(--lf-card-line); border-radius: 20px; padding: 1.15rem 1.25rem; box-shadow: var(--lf-shadow); }
.fm-region[hidden] { display: none; }
.fm-region header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-block-end: .75rem; }
.fm-region h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.fm-emergency { display: inline-flex; flex-direction: column; align-items: flex-end; padding: .35rem .8rem; border-radius: 12px; background: #fdecef; color: #9b1f3a !important; text-decoration: none; line-height: 1.2; }
.fm-emergency span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.fm-emergency strong { font-size: 1.15rem; }
[data-theme="dark"] .fm-emergency { background: rgba(255, 179, 194, .12); color: #ffb3c2 !important; }
.fm-region ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.fm-region li { display: flex; flex-direction: column; gap: .2rem; padding-block-start: .75rem; border-top: 1px dashed var(--lf-card-line); }
.fm-number { font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.fm-note { color: var(--lf-muted); font-size: .9rem; }
.fm-site { font-size: .88rem; }

@media (max-width: 575.98px) {
  .fm-danger { grid-template-columns: 1fr; }
  .fm-exit { inset-inline-end: .75rem; inset-block-end: .75rem; }
}
@media print { .fm-exit { display: none !important; } }
