.adverbials-database { text-align: left; font-size: 18px; }
.adverbials-database [hidden] { display: none !important; }
.adverbials-database h2 { font-size: 24px; }
.adverbials-database h3 { font-size: 20px; }
.adverbials-database p { line-height: 1.5; }
.adverbials-database summary { cursor: pointer; color: #185e7e; font-weight: bold; }
.adverbials-database details { margin: 16px 0; }
.adverbials-database .adv-guide { padding: 12px; border: 1px solid #ccdce3; border-radius: 5px; }
.adverbials-database .adv-downloads a { color: #185e7e; }
.adverbials-database .adv-stats { background: #e3f2fd; padding: 12px 16px; border-radius: 5px; }
.adverbials-database .adv-controls { padding: 16px; background: #f5f5f5; border-radius: 5px; }
.adverbials-database fieldset { min-width: 0; border: 1px solid #ccdce3; border-radius: 5px; padding: 12px; margin: 12px 0; }
.adverbials-database legend, .adverbials-database .adv-query-label { font-weight: bold; color: #185e7e; }
.adverbials-database .adv-query-label { display: block; }
.adverbials-database input[type="search"] { box-sizing: border-box; width: 100%; padding: 8px; border: 1px solid #829da9; border-radius: 3px; font: inherit; margin: 6px 0; background: white; color: #111; }
.adverbials-database #adv-query { max-width: 700px; }
.adverbials-database .adv-hint { font-size: 16px; margin: 6px 0 12px; color: #454545; }
.adverbials-database .adv-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adverbials-database .adv-options { max-height: 170px; overflow-y: auto; padding: 4px; }
.adverbials-database .adv-options label { display: flex; align-items: baseline; gap: 6px; margin: 5px 0; overflow-wrap: anywhere; cursor: pointer; }
.adverbials-database input[type="checkbox"] { flex-shrink: 0; }
.adverbials-database .adv-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.adverbials-database .adv-columns label { display: flex; align-items: baseline; gap: 6px; cursor: pointer; }
.adverbials-database button { background: #26789e; color: white; border: 0; border-radius: 4px; padding: 9px 14px; margin: 8px 8px 0 0; cursor: pointer; font: inherit; }
.adverbials-database button:hover { background: #1e5f7a; }
.adverbials-database button:disabled { background: #777; cursor: default; }
.adverbials-database :is(button, input, summary, .adv-table-wrapper):focus-visible { outline: 3px solid #b57800; outline-offset: 3px; }
.adverbials-database .adv-error { padding: 12px; background: #ffebee; color: #a32020; }
.adverbials-database .adv-table-wrapper { overflow: auto; max-height: 65vh; border: 1px solid #ccdce3; }
.adverbials-database .adv-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.adverbials-database .adv-table th { position: sticky; top: 0; background: #26789e; color: white; z-index: 1; }
.adverbials-database .adv-table :is(th, td) { padding: 10px 12px; border-bottom: 1px solid #ccdce3; border-right: 1px solid #e0e8ec; text-align: left; vertical-align: top; min-width: 140px; max-width: 520px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: inherit; }
.adverbials-database .adv-table td[data-field="noun"] { min-width: 140px; }
.adverbials-database .adv-table td[data-field="construction"] { min-width: 220px; }
.adverbials-database .adv-table :is(td[data-field="example"], td[data-field="examples"], td[data-field="definition"]) { min-width: 340px; }
.adverbials-database .adv-table tbody tr:nth-child(even) { background: #f5f9fb; }
.adverbials-database .adv-table tbody tr:hover { background: #eaf3f7; }
.adverbials-database .adv-missing { color: #666; font-style: italic; }
.adverbials-database .adv-source-error { color: #a32020; font-style: italic; }
.adverbials-database .adv-pagination { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.adverbials-database .adv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
    .adverbials-database .adv-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adverbials-database .adv-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .adverbials-database { font-size: 16px; }
    .adverbials-database .adv-controls { padding: 10px; }
    .adverbials-database .adv-filters, .adverbials-database .adv-columns { grid-template-columns: minmax(0, 1fr); }
}
