:root { font: 16px/1.5 system-ui, sans-serif; color: #173147; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; gap: 24px; padding: 16px 5%; background: white; border-bottom: 1px solid #d8e0e6; }
header img { object-fit: contain; }
header span { font-size: 1.4rem; font-weight: 600; }
.development { padding: 8px 5%; background: #fff0cc; color: #6b4c00; }
nav { display: flex; align-items: center; gap: 22px; padding: 14px 5%; background: #173147; color: white; flex-wrap: wrap; }
nav a { color: white; } nav form { margin: 0; } .account { margin-left: auto; }
main { max-width: 1200px; padding: 24px; margin: auto; min-height: 65vh; }
h1 { font-size: 1.7rem; margin: 8px 0; } h2 { font-size: 1.2rem; }
.card { background: white; border: 1px solid #d8e0e6; border-radius: 8px; padding: 24px; margin: 18px 0; }
.login { max-width: 420px; margin: 40px auto; }
label { display: block; margin: 10px 0 5px; }
input:not([type="checkbox"]), textarea { width: 100%; padding: 10px; border: 1px solid #8295a6; border-radius: 4px; font: inherit; }
fieldset { margin: 20px 0; border: 1px solid #d8e0e6; }
.option { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
button { font: inherit; border: 0; border-radius: 4px; padding: 9px 18px; background: #1764a0; color: white; cursor: pointer; margin-top: 12px; }
button:disabled { opacity: .6; cursor: default; } nav button { margin-top: 0; }
.result-paging button + button { margin-left: 10px; }
.search-result { padding: 12px 0; border-bottom: 1px solid #d8e0e6; }
.search-result h3 { font-size: 1.05rem; margin: 0 0 5px; }
.search-result p { margin: 8px 0; }
.muted { color: #576c7b; font-size: .9rem; } .error { color: #a02020; }
.table-wrap { overflow-x: auto; background: white; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid #d8e0e6; vertical-align: top; }
th { background: #e8eef3; } td textarea { min-width: 180px; }
pre { overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
footer { text-align: center; padding: 24px; color: #576c7b; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.analysis-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.analysis-layout .card { min-width: 0; }
.entities details { padding: 12px 0; border-bottom: 1px solid #d8e0e6; }
.entities summary { cursor: pointer; }
.entity-type { display: inline-block; border-radius: 4px; padding: 2px 6px; background: #e8eef3; font-size: .8rem; }
.context { font-size: .9rem; border-left: 3px solid #cad8e5; padding-left: 10px; }
.article-text { font-family: inherit; line-height: 1.8; }
mark { background: #fff0b3; padding: 1px 2px; border-radius: 2px; scroll-margin-top: 20px; }
mark:target { background: #ffcf43; outline: 2px solid #1764a0; }
@media(max-width: 650px) { .analysis-layout { grid-template-columns: 1fr; } }
@media(max-width: 650px) { header { flex-direction: column; gap: 4px; } nav { gap: 12px; } .account { margin-left: 0; } main { padding: 16px; } }

/* Original One Click Compliance search layout. */
.site-menu { position: relative; margin: 12px 15px; }
.site-menu summary { cursor: pointer; color: #337ab7; }
.site-menu nav { position: absolute; z-index: 5; top: 25px; left: 0; min-width: 240px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; border-radius: 4px; box-shadow: 0 6px 12px #0003; }
.original-search { background: #fff; color: #333; font: 14px/1.42857143 Arial, Helvetica, sans-serif; }
.original-search header { justify-content: center; border: 0; padding: 10px 15px 0; }
.original-search header span { display: none; }
.original-search .development { background: transparent; color: #777; font-size: 11px; text-align: center; padding: 3px 15px; }
.original-search main { width: 100%; max-width: none; padding: 0 15px; }
.original-search a { color: #337ab7; text-decoration: none; }
.original-search a:hover { text-decoration: underline; }
.original-search .search-box { max-width: 400px; margin: 0 auto 10px; border: 1px solid #333; border-radius: 0; padding: 10px; }
.original-search label { font-weight: 700; margin: 0 0 5px; }
.original-search input:not([type=checkbox]) { height: 34px; padding: 6px 12px; border: 1px solid #ccc; box-shadow: inset 0 1px 1px #0001; margin-bottom: 15px; }
.original-search .option { font-weight: 400; color: #337ab7; margin: 0; gap: 6px; }
.original-search .option input { margin: 0; }
.original-search .monitoring-note { font-size: 11px; color: #777; margin: 4px 0; }
.original-search .search-box button { width: 100%; font-size: 18px; background: #487db3; border: 1px solid #3e6e9f; padding: 10px 16px; margin-top: 6px; }
.original-search .source-panel { border-radius: 4px; border: 1px solid #ddd; padding: 0; margin: 20px 0; overflow: hidden; }
.original-search .source-panel h2 { margin: 0; padding: 12px 15px; background: #d9edf7; color: #31708f; font-size: 16px; font-weight: 400; }
.original-search .source-negative_news { border-color: #ebccd1; }
.original-search .source-negative_news h2 { background: #f2dede; color: #a94442; }
.original-search .source-watchlists h2 { background: #dff0d8; color: #3c763d; }
.original-search .source-panel > p:not(.sr-only) { margin: 10px 15px; }
.original-search .source-panel > div:not(.result-paging) { padding: 0 15px 10px; }
.original-search .result-paging { display: flex; justify-content: space-between; padding: 20px 15px; }
.original-search .result-paging[hidden] { display: none; }
.original-search .result-paging button { color: #337ab7; background: #fff; border: 1px solid #ddd; border-radius: 20px; padding: 5px 14px; margin: 0; font-size: 14px; }
.original-search .result-paging button:first-child::before { content: '← '; }
.original-search .result-paging button:last-child::after { content: ' →'; }
.original-search ol { padding-left: 18px; margin: 0; }
.original-search .search-result { border: 0; padding: 0 0 3px; }
.original-search .search-result h3 { display: inline; font-size: 14px; font-weight: 400; margin: 0; }
.original-search .search-result p { margin: 0; }
.original-search .result-score { color: #333; }
.original-search .source-links a:first-child { color: #333; overflow-wrap: anywhere; }
@media(max-width: 650px) { .original-search header { flex-direction: row; } .original-search .search-box { width: 100%; } }

.watchlist-result { margin: 12px 0; }
.watchlist-result dl { margin: 0; }
.watchlist-result dt { font-weight: bold; }
.watchlist-result dd { margin: 0 0 5px 18px; overflow-wrap: anywhere; }

.original-search .watchlist-result { margin: 0 0 6px; }
.original-search .watchlist-result ul { padding-left: 40px; list-style-type: circle; }
.original-search .watchlist-result ul li { margin: 0; }
.original-search #results { display: flex; flex-direction: column; }
.original-search .source-watchlists { order: -1; }

.original-search .source-officers, .original-search .source-companies { border-color: #337ab7; }
.original-search .source-officers h2, .original-search .source-companies h2 { background: #337ab7; color: #fff; }
.corporate-result { margin: 0 0 12px; }
.corporate-result ul { list-style-type: circle; padding-left: 40px; }

.original-search .source-officers h2, .original-search .source-companies h2 { padding: 0; }
.original-search .source-officers h2 a, .original-search .source-companies h2 a { display: block; padding: 12px 15px; color: white; }
.original-search .source-officers h2 a:hover, .original-search .source-companies h2 a:hover { background: #286090; text-decoration: underline; }

.original-search .source-negative_news h2, .original-search .source-watchlists h2 { padding: 0; }
.original-search .source-toggle { display: block; width: 100%; margin: 0; padding: 12px 15px; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; font: inherit; }
.original-search .source-toggle:hover { filter: brightness(.92); text-decoration: underline; }
.original-search .source-toggle:focus-visible { outline: 2px solid #337ab7; outline-offset: -3px; }
.original-search .source-panel > .source-body { padding: 0; }
.original-search .source-body[hidden] { display: none; }
.original-search .source-body > div:not(.result-paging) { padding: 0 15px 10px; }
.original-search .source-body > p:not(.sr-only) { margin: 10px 15px; }

.original-search .source-panel.has-matches { border-color: #ebccd1; }
.original-search .source-panel.has-matches h2 { background: #f2dede; color: #a94442; }
.original-search .source-panel.no-matches { border-color: #d6e9c6; }
.original-search .source-panel.no-matches h2 { background: #dff0d8; color: #3c763d; }
.original-search .source-toggle:disabled { opacity: 1; cursor: default; }
.original-search .source-toggle:disabled:hover { filter: none; text-decoration: none; }

.original-search .source-courts h2, .original-search .source-recap h2 { padding: 0; }
.court-result { margin: 0 0 12px; overflow-wrap: anywhere; }
.court-result ul { list-style-type: circle; padding-left: 40px; }

/* High-contrast dropdown shared by all pages. */
.site-menu nav { background: #fff; color: #333; border: 1px solid #ddd; padding: 5px 0; gap: 0; }
.site-menu nav a, .original-search .site-menu nav a { color: #333; display: block; padding: 8px 20px; text-decoration: none; }
.site-menu nav a:hover, .site-menu nav a:focus-visible, .original-search .site-menu nav a:hover { color: #173147; background: #e8f1fa; text-decoration: none; }
.site-menu nav .account { margin: 5px 0 0; padding: 8px 20px; border-top: 1px solid #ddd; color: #666; font-size: 13px; }
.site-menu nav form { padding: 0 10px 5px; }
.site-menu nav button { width: 100%; margin: 0; text-align: left; padding: 8px 10px; background: #fff; color: #333; }
.site-menu nav button:hover, .site-menu nav button:focus-visible { background: #e8f1fa; color: #173147; }

.original-search .batch-box textarea { height: 214px; padding: 6px 12px; border: 1px solid #ccc; font: inherit; resize: vertical; }
.original-search .batch-box [hidden], .batch-table-wrap[hidden] { display: none; }
.original-search .batch-box button { margin-top: 15px; }
.original-search .batch-table-wrap { margin-top: 10px; }
.original-search #batch-results { border: 1px solid #ddd; font-size: 14px; }
.original-search #batch-results th, .original-search #batch-results td { border: 1px solid #ddd; padding: 8px; background: white; }
.original-search #batch-results td.batch-hits { background: #f2dede; color: #a94442; padding: 0; }
.original-search #batch-results .batch-hits a { display: block; padding: 8px; color: #a94442; }
.original-search #batch-results .batch-hits a:hover { background: #ebcccc; }
.original-search #batch-results td.batch-zero { background: #dff0d8; color: #3c763d; }
.original-search #batch-progress { color: #666; font-size: 12px; }

.audit-list th, .audit-list td { white-space: nowrap; padding: 7px 10px; vertical-align: middle; }

body.original-signin { min-height: 100vh; background: #fff; color: #333; font: 14px/1.42857143 Arial, sans-serif; padding: 40px 15px; }
.original-signin main { max-width: none; min-height: 0; padding: 0; text-align: center; }
.original-signin .signin-logo { display: block; margin: 0 auto 15px; object-fit: contain; }
.original-signin .signin-form { width: 300px; max-width: 100%; margin: 0 auto; text-align: left; }
.original-signin .signin-form input:not([type="hidden"]) { display: block; height: 45px; padding: 10px; font-size: 16px; line-height: 1.42857143; border: 1px solid #ccc; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); }
.original-signin #login { border-radius: 4px 4px 0 0; margin-bottom: -1px; }
.original-signin #password { border-radius: 0 0 4px 4px; }
.original-signin .signin-form input:focus { position: relative; z-index: 2; border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); }
.original-signin .signin-form button { width: 100%; margin-top: 10px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border: 1px solid #3d6f9d; background: #487eb2; border-radius: 6px; }
.original-signin footer { padding: 15px 0 0; color: #333; }
.original-signin footer a { color: #487eb2; text-decoration: none; }
.original-signin .error { max-width: 330px; margin: 0 auto 12px; }

.analysis-layout .entities { padding: 16px; overflow-wrap: anywhere; font-size: .9rem; }

.analysis-layout.tags-off { grid-template-columns: minmax(0, 1fr); }
.analysis-layout.tags-off .entities { display: none; }
.analysis-layout.tags-off mark { background: transparent; padding: 0; outline: none; }

/* Matching article highlights and entity type badges. */
[data-entity="PERSON"] { background: #cde5ff; color: #172b3a; }
[data-entity="ORG"] { background: #d8cff5; color: #172b3a; }
[data-entity="GPE"] { background: #c8ecd3; color: #172b3a; }
[data-entity="LOC"] { background: #bcebe7; color: #172b3a; }
[data-entity="FAC"] { background: #dce8bf; color: #172b3a; }
[data-entity="DATE"] { background: #ffe0bc; color: #172b3a; }
[data-entity="TIME"] { background: #ffd0b0; color: #172b3a; }
[data-entity="MONEY"] { background: #f5c9db; color: #172b3a; }
[data-entity="PERCENT"] { background: #f7c7c2; color: #172b3a; }
[data-entity="NORP"] { background: #d8e4f5; color: #172b3a; }
[data-entity="EVENT"] { background: #edc9f2; color: #172b3a; }
[data-entity="LAW"] { background: #bfe7f0; color: #172b3a; }
[data-entity="PRODUCT"] { background: #e7d4c0; color: #172b3a; }
[data-entity="WORK_OF_ART"] { background: #f4d2e8; color: #172b3a; }
[data-entity="LANGUAGE"] { background: #dce4fa; color: #172b3a; }
[data-entity="QUANTITY"] { background: #e6e7b7; color: #172b3a; }
[data-entity="ORDINAL"] { background: #e4dccb; color: #172b3a; }
[data-entity="CARDINAL"] { background: #dce1e6; color: #172b3a; }
.tag-color-key { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }

.entity-search { color: inherit; text-decoration: none; }
.entity-search:hover, .entity-search:focus { text-decoration: underline; }
.analysis-layout.tags-off .entity-search { pointer-events: none; cursor: text; }
.entities summary strong a { color: inherit; }

/* Browser-local theme preference; semantic result and entity colors remain distinct. */
.theme-toggle { position: fixed; top: 12px; right: 16px; z-index: 20; margin: 0; padding: 7px 12px; border: 1px solid #b5c4d1; border-radius: 20px; background: #fff; color: #173147; font: 14px/1.4 system-ui,sans-serif; box-shadow: 0 2px 6px #0001; }
.theme-toggle:focus-visible { outline: 3px solid #70baff; outline-offset: 3px; }
html[data-theme="dark"] { color-scheme: dark; background: #111923; color: #e5edf5; }
html[data-theme="dark"] body { background: #111923; color: #e5edf5; }
html[data-theme="dark"] header, html[data-theme="dark"] .card,
html[data-theme="dark"] .table-wrap, html[data-theme="dark"] .site-menu nav { background: #1b2735; color: #e5edf5; border-color: #42556a; }
html[data-theme="dark"] header { border-color: #344657; }
html[data-theme="dark"] a, html[data-theme="dark"] .site-menu summary { color: #91c9ff; }
html[data-theme="dark"] .muted, html[data-theme="dark"] footer,
html[data-theme="dark"] .monitoring-note, html[data-theme="dark"] #batch-progress,
html[data-theme="dark"] .result-score { color: #b9c9d9; }
html[data-theme="dark"] input:not([type="checkbox"]), html[data-theme="dark"] textarea { background: #111d2b; color: #edf3fa; border-color: #5b7188; }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #aabdd0; opacity: 1; }
html[data-theme="dark"] .theme-toggle, html[data-theme="dark"] .site-menu nav button { background: #26394d; color: #e5edf5; border-color: #5b7188; }
html[data-theme="dark"] .site-menu nav a { color: #e5edf5; }
html[data-theme="dark"] .site-menu nav a:hover, html[data-theme="dark"] .site-menu nav a:focus-visible,
html[data-theme="dark"] .site-menu nav button:hover { background: #304a65; color: #fff; }
html[data-theme="dark"] .site-menu nav .account { border-color: #42556a; color: #b9c9d9; }
html[data-theme="dark"] th, html[data-theme="dark"] #batch-results th { background: #26394d; color: #e5edf5; }
html[data-theme="dark"] td, html[data-theme="dark"] #batch-results td { background: #1b2735; color: #e5edf5; border-color: #42556a; }
html[data-theme="dark"] .source-panel { border-color: #42556a; }
html[data-theme="dark"] .source-panel.has-matches h2, html[data-theme="dark"] #batch-results td.batch-hits { background: #542c36; color: #ffc4cb; }
html[data-theme="dark"] .source-panel.no-matches h2, html[data-theme="dark"] #batch-results td.batch-zero { background: #204832; color: #bcebc8; }
html[data-theme="dark"] #batch-results .batch-hits a { color: #ffc4cb; }
html[data-theme="dark"] .source-links a:first-child { color: #d7e7f7; }
html[data-theme="dark"] .result-paging button { background: #26394d; border-color: #5b7188; color: #a8d4ff; }
html[data-theme="dark"] .entities summary strong a, html[data-theme="dark"] .entity-search { color: inherit; }
html[data-theme="dark"] .analysis-layout.tags-off mark { color: inherit; }
html[data-theme="dark"] .error { color: #ffa9a9; }
html[data-theme="dark"] .original-search .option { color: #91c9ff; }
html[data-theme="dark"] #batch-results .batch-hits a:hover { background: #6b3542; }
