/* OFAC-only field extensions. B site.css + preview.css remain unchanged. */
#result-title { scroll-margin-top:calc(var(--top) + 18px); }
.ofac-filters { margin-top:18px; font-size:13px; }
.ofac-filters>summary { display:flex; align-items:center; gap:8px; width:fit-content; cursor:pointer; list-style:none; color:var(--ink-2); }
.ofac-filters>summary::-webkit-details-marker { display:none; }
.ofac-filters>summary .icon { width:14px; height:14px; transition:transform .15s; }
.ofac-filters[open]>summary .icon { transform:rotate(180deg); }
.ofac-filters>summary>span { font-size:12px; margin-left:8px; }
.ofac-filter-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(190px,1fr); gap:20px; padding:18px 0 0; }
.ofac-filter-grid .field { margin:0; }
.ofac-checks { display:flex; flex-direction:column; gap:9px; justify-content:center; }
.ofac-checks label { display:flex; align-items:center; gap:8px; cursor:pointer; color:var(--ink-2); }
.ofac-checks input { accent-color:var(--primary); width:15px; height:15px; }
.ofac-examples { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 24px; }
.ofac-example { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:18px 0; text-align:left; border-bottom:1px solid var(--rule); min-width:0; }
.ofac-example span { font-size:15px; font-weight:550; }
.ofac-example:hover span { text-decoration:underline; text-underline-offset:4px; }
.ofac-example small { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted); }
.ofac-example .icon { width:13px; height:13px; }
.ofac-small-note { margin:14px 0 0; font-size:12px; color:var(--muted); }
.ofac-coverage { margin-top:36px; padding-top:20px; border-top:1px solid var(--rule); font-size:13px; }
.ofac-coverage>span { color:var(--ink-2); font-weight:550; }
.ofac-coverage p { color:var(--muted); max-width:900px; margin:6px 0 0; }
.ofac-test-help { font-size:12px; color:var(--muted); margin-top:18px; }
.ofac-test-help summary { cursor:pointer; width:fit-content; }
.ofac-test-help p { margin:8px 0 0; max-width:820px; }
.ofac-result-caution { display:flex; gap:9px; padding:12px 24px; background:var(--well); border-bottom:1px solid var(--rule); font-size:12px; color:var(--muted); }
.ofac-result-caution .icon { width:16px; height:16px; margin-top:2px; }
.ofac-results { width:100%; table-layout:fixed; }
.ofac-results th:first-child { width:31%; }
.ofac-results th:nth-child(2) { width:18%; }
.ofac-results th:nth-child(3) { width:36%; }
.ofac-results th:last-child { width:15%; }
.ofac-results td { vertical-align:top; overflow-wrap:anywhere; }
.ofac-record-link { display:block; font-weight:600; line-height:1.6; }
.ofac-record-link:hover { text-decoration:underline; text-underline-offset:3px; }
.ofac-hit { display:block; line-height:1.65; }
.ofac-evidence { margin-top:7px; }
.ofac-more-evidence { margin-top:7px; font-size:12px; color:var(--muted); }
.ofac-more-evidence summary { cursor:pointer; }
.ofac-more-evidence p { margin:8px 0 0; color:var(--ink-2); }
.ofac-more-evidence small { display:block; color:var(--muted); }
.ofac-empty-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.ofac-detail-page .backline { display:flex; justify-content:space-between; gap:18px; align-items:center; }
.ofac-sample-switch { min-width:0; max-width:270px; }
.ofac-sample-switch select { max-width:100%; height:34px; padding:4px 26px 4px 10px; border:1px solid var(--rule-2); border-radius:var(--r2); background:var(--sheet); color:var(--ink-2); font-size:12px; }
.ofac-record-kicker { color:var(--muted); font-size:12px; margin:0 0 12px; }
.ofac-name-row { padding:15px 0; border-top:1px solid var(--rule); overflow-wrap:anywhere; }
.ofac-name-label { display:flex; flex-wrap:wrap; align-items:center; gap:12px; color:var(--muted); font-size:12px; margin-bottom:6px; }
.ofac-name-row p { margin:0; font-size:15px; color:var(--ink); }
.ofac-identifiers { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 32px; }
.ofac-identifier { padding:16px 0; border-top:1px solid var(--rule); overflow-wrap:anywhere; }
.ofac-identifier p { margin:0 0 5px; }
.ofac-identifier-value { font-variant-numeric:tabular-nums; font-weight:550; }
.ofac-identifier .subtle { font-size:12px; }
.ofac-restriction+.ofac-restriction { border-top:1px solid var(--rule-2); margin-top:26px; padding-top:24px; }
.ofac-restriction-head { display:flex; gap:14px; align-items:flex-start; margin:18px 0 6px; }
.ofac-restriction-head h3 { margin:0 0 4px; line-height:1.6; }
.ofac-restriction-head p { margin:0; font-size:12px; }
.ofac-section-number { font-size:12px; color:var(--accent); font-variant-numeric:tabular-nums; line-height:1.8; padding-top:1px; }
.ofac-source-notes { margin-top:16px; font-size:13px; }
.ofac-source-notes summary { display:flex; gap:8px; align-items:center; cursor:pointer; color:var(--ink-2); list-style:none; width:fit-content; }
.ofac-source-notes summary::-webkit-details-marker { display:none; }
.ofac-source-notes summary .icon { width:14px; height:14px; }
.ofac-source-notes[open] summary .icon { transform:rotate(180deg); }
.ofac-source-notes p { color:var(--muted); margin:12px 0 0; white-space:pre-line; overflow-wrap:anywhere; line-height:1.85; }
.ofac-context-note { margin-top:32px; padding-top:20px; border-top:1px solid var(--rule); }
.ofac-detail-page .onpage-toc { display:none; }
.ofac-detail-page .record-section { scroll-margin-top:calc(var(--top) + 18px); }
.ofac-detail-page .record-section:focus { outline:none; }
.ofac-detail-page .record-section:focus-visible>h2 { text-decoration:underline; text-decoration-color:var(--rule-2); text-underline-offset:5px; }
@media(max-width:1180px) { .ofac-results th:first-child { width:29%; }.ofac-results th:nth-child(3) { width:35%; }.ofac-results th:last-child { width:18%; } }
@media(max-width:990px) { .ofac-detail-page .onpage-toc { display:block; } }
@media(max-width:760px) {
 .ofac-filter-grid { grid-template-columns:1fr 1fr; gap:16px; }.ofac-checks { grid-column:1/-1; }.ofac-checks label { min-height:30px; }
 .ofac-filters>summary { min-height:32px; flex-wrap:wrap; }.ofac-filters>summary>span { margin-left:0; }
 .ofac-examples { gap:0 18px; }.ofac-example { padding:16px 0; }.ofac-example span { font-size:14px; }
 .ofac-coverage { margin-top:28px; }.ofac-result-caution { padding:12px 16px; }
 .ofac-results-wrap { overflow:visible; }.ofac-results,.ofac-results tbody { display:block; min-width:0!important; width:100%; }
 .ofac-results thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .ofac-results tr { display:grid; grid-template-columns:minmax(0,1fr); padding:18px 16px; border-bottom:1px solid var(--rule); }
 .ofac-results tr:last-child { border-bottom:0; }.ofac-results td { display:block; border:0; padding:0 0 12px; width:auto; }
 .ofac-results td:before { content:attr(data-label); display:block; font-size:11px; color:var(--muted); margin-bottom:5px; }
 .ofac-results td:last-child { padding:2px 0 0; }.ofac-results td:last-child:before { display:none; }
 .ofac-results .table-action { min-height:40px; }.ofac-results .entity-name { font-size:15px; }
 .ofac-detail-page .backline { align-items:flex-start; flex-direction:column; gap:14px; }
 .ofac-sample-switch { max-width:100%; }.ofac-sample-switch select { height:38px; }
 .ofac-identifiers { grid-template-columns:minmax(0,1fr); }
 .ofac-detail-page .record-addresses { grid-template-columns:minmax(0,1fr); }
 .ofac-detail-page .record-section { scroll-margin-top:143px; }
 .ofac-detail-page .detail-hero h1 { font-size:27px; line-height:1.25; }
 .ofac-empty-actions { width:100%; }.ofac-empty-actions .btn { white-space:normal; }
}
@media(max-width:400px) { .ofac-filter-grid { grid-template-columns:minmax(0,1fr); }.ofac-checks { grid-column:auto; } }
@media print { .ofac-sample-switch,.ofac-test-help,.onpage-toc { display:none!important; }.record-body { border:0; }.record-section { break-inside:avoid; } }
/* Copy and detail-confirmation revision; retain B's original modal components. */
.ofac-pricing-note { margin:17px 0 -6px; color:var(--ink-2); font-size:13px; }
.ofac-record-link { text-align:left; width:100%; }
.ofac-confirm-note { font-size:13px; color:var(--muted); margin:14px 0 0; }
.ofac-access-note { font-size:12px!important; color:var(--muted); margin:10px 0 0; }

/* Small explanations next to the existing field; no additional panels. */
.ofac-field-help { display:block; margin-top:7px; font-size:12px; line-height:1.7; color:var(--muted); }
.definition .ofac-field-help { font-weight:400; white-space:normal; }
[data-unavailable][aria-disabled="true"] { cursor:default; opacity:.6; }
[data-unavailable][aria-disabled="true"]:hover { text-decoration:none; }

/* Click/tap help uses B's quiet tooltip colors without affecting filter layout. */
.ofac-label-row { display:flex; align-items:center; gap:6px; min-height:26px; }
.ofac-help-button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 26px; width:26px; height:26px; color:var(--muted); border-radius:var(--r2); }
.ofac-help-button .icon { width:16px; height:16px; }
.ofac-help-button:hover,.ofac-help-button[aria-expanded="true"] { color:var(--ink); background:var(--tint); }
.ofac-check-row { display:flex; align-items:center; gap:6px; }
.ofac-check-row label { flex:1; min-width:0; }
.ofac-help-popover { position:fixed; z-index:95; width:min(300px,calc(100vw - 32px)); padding:10px 12px; color:var(--ink); background:var(--sheet); border:1px solid var(--rule-2); border-radius:var(--r2); box-shadow:0 3px 12px var(--tint); font-size:13px; line-height:1.65; }
.ofac-query-time { font-variant-numeric:tabular-nums; }

/* Only the guide entry below the untouched search form. */
.ofac-topic-link{display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:32px;margin:30px 0 8px;padding:26px 0 28px;border-top:2px solid #393b3e;border-bottom:1px solid var(--rule);color:var(--ink);text-decoration:none!important}
.ofac-topic-copy>span{display:block;font-size:10px;letter-spacing:.06em;color:#9a4e21;margin-bottom:11px}.ofac-topic-copy h2{font:600 25px/1.4 var(--sans);letter-spacing:-.025em;margin:0 0 10px}.ofac-topic-copy p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 16px}.ofac-topic-copy strong{display:inline-flex;align-items:center;gap:13px;color:#9a4e21;font-size:12px;font-weight:500}.ofac-topic-copy .icon{width:17px;height:17px}.ofac-topic-link>img{display:block;width:100%;height:auto;max-height:210px;object-fit:contain}.ofac-topic-link:hover .ofac-topic-copy strong{text-decoration:underline;text-underline-offset:4px}.ofac-topic-link:focus-visible{outline:2px solid #9a4e21;outline-offset:5px}
html[data-theme=dark] .ofac-topic-link{border-top-color:#ddd8cc}html[data-theme=dark] .ofac-topic-copy>span,html[data-theme=dark] .ofac-topic-copy strong{color:#e6a977}html[data-theme=dark] .ofac-topic-link>img{filter:invert(.82) sepia(.18)}
@media(max-width:760px){.ofac-topic-link{grid-template-columns:1fr;gap:5px;margin-top:24px;padding:21px 0 12px}.ofac-topic-copy h2{font-size:22px}.ofac-topic-copy>span{font-size:9px;margin-bottom:8px}.ofac-topic-copy p{font-size:12px;margin-bottom:12px}.ofac-topic-link>img{max-height:140px}.ofac-topic-copy strong{font-size:11px}}
@media(min-width:761px) and (max-width:1024px){.ofac-topic-link{gap:18px}.ofac-topic-copy h2{font-size:23px}}

/* Only real OFAC values that are longer than the accepted template samples. */
.ofac-detail-page .detail-hero h1,
.ofac-detail-page .definition dd,
.ofac-detail-page .ofac-restriction-head > div { min-width:0; overflow-wrap:anywhere; }
.ofac-detail-page .definition dd { white-space:pre-line; }
#info-dialog[data-ofac-confirmation="true"] .modal-name { overflow-wrap:anywhere; }

/* Override the shared table's fixed row height for real multiline OFAC values. */
.ofac-query-page .ofac-results td { height:auto; min-width:0; white-space:normal; }
.ofac-query-page .ofac-results .entity-name { width:100%; height:auto; min-height:0; padding:0; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.ofac-query-page .ofac-results .entity-code,
.ofac-query-page .ofac-results .ofac-hit { display:block; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:760px) {
 .ofac-query-page .ofac-results td { height:auto; min-height:0; }
 .ofac-query-page .ofac-results td::before { position:static; width:auto; height:auto; }
}

/* Desktop OFAC source layout; shared mobile layout remains authoritative. */
@media (min-width:991px) {
 .ofac-detail-page #source > .definition { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ofac-detail-page #source > .definition > div:first-child { grid-column:1 / -1; grid-template-columns:minmax(96px,calc(19% - 6px)) minmax(0,1fr); }
}
