/* FAP-only additions. Historical site.css remains the branding/layout authority. */
.tenant-fap .brand { text-decoration: none; }
.fap-entry-locked { overflow: hidden; }
.fap-entry-locked > .site-language { display: none; }
.research-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(10,20,30,.64); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .research-overlay { background: rgba(10,20,30,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.fap-research-dialog { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%,-50%); z-index: 1001; width: min(620px,calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: 0; padding: 28px 36px; overflow-y: auto; overscroll-behavior: contain; color: #102246; background: #fff; border: 1px solid #dce2eb; border-radius: 10px; box-shadow: 0 24px 70px #0004; font: 14px/1.55 'Open Sans',sans-serif; }
.fap-research-dialog::backdrop { background: transparent; }
.fap-modal-brand { display: flex; justify-content: center; align-items: center; margin: 0 0 22px; }
.fap-modal-brand .brand-wordmark { font-size: clamp(20px,2.5vw,27px); white-space: nowrap; }
.fap-research-dialog h2 { font-size: 22px; text-align: center; }
.research-notice { padding: 14px 16px; background: #edf2f8; border-left: 4px solid #1c4380; color: #102246; }
.fap-research-form label { display: block; margin: 12px 0; font-size: 13px; font-weight: 700; }
.fap-research-form input:not([type="checkbox"]), .fap-research-form select { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #929bab; border-radius: 5px; font: inherit; color: #102246; background: #fff; }
.fap-research-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fap-research-form .fap-research-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.fap-research-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; }
.fap-research-form .fap-button { display: block; min-width: 0; width: 65%; margin: 20px auto 0; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.fap-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fap-access-links { padding-top: 16px; margin-top: 20px; border-top: 1px solid #dce2eb; text-align: center; }
.fap-research-dialog a { color: #1c4380; }
.fap-modal-fine { font-size: 11px; color: #596273; }
.fap-modal-language { margin-top: 16px; }
.fap-modal-language select { width: 100%; padding: 9px; border: 1px solid #929bab; border-radius: 5px; color: #102246; background: #fff; font: inherit; }
.tenant-fap :is(a,button,input,select):focus-visible { outline: 3px solid #225ea8; outline-offset: 3px; }
.tenant-fap #fap-page .catalog-page { min-height: 0; }
.tenant-fap .action-button:disabled { cursor: default; }
.tenant-fap #fap-page .panel { padding: 40px 24px; }
.tenant-fap #fap-page .notice { padding: 16px; background: #edf2f8; border-left: 4px solid #1c4380; }
@media(max-width:600px) {
    .fap-research-dialog { padding: 22px; width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
    .fap-research-fields { grid-template-columns: 1fr; gap: 0; }
    .fap-research-form .fap-button { width: 100%; }
    .fap-modal-brand .fap-flag { width: 30px; min-width: 30px; margin-right: 6px; }
    .fap-modal-brand .brand-wordmark { font-size: 21px; letter-spacing: -1px; }
}
