/* A light, independent palette for the combination directory entrances. */
.combinations-main { padding-bottom: 36px; }
.combinations-main .intro { padding-top: 24px; }
.combinations-map { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0 0 24px; }
.combination-entry-group { min-width: 0; margin: 0; }
.combination-examples { margin: 10px 0 0; padding: 7px 12px; border: 1px solid #d9dfe3; border-radius: 14px; background: #edf0f2; }
.combination-examples-heading { display: table; margin: 3px 0 8px; padding: 4px 10px; border-radius: 7px; background: #6b6b6b; color: #fff; font: 700 13px/1.7 Cairo,Noto,sans-serif; }
.combination-examples ul { list-style: none; margin: 0; padding: 0; }
.combination-examples li { margin: 0; padding: 0; }
.combination-examples li + li { border-top: 1px solid #d2dbe1; }
.combination-examples a { display: flex; align-items: center; min-height: 53px; padding: 10px 3px; border-radius: 6px; color: #334c5e; text-decoration: none; font: 700 14px/1.9 Cairo,Noto,sans-serif; overflow-wrap: anywhere; }
.combination-examples a:hover { background: #dfe5e9; color: #163a51; }
.combination-examples a:focus-visible { outline: 2px solid #557589; outline-offset: 2px; background: #dfe5e9; }
.combinations-global-search { padding: 20px; margin: 8px 0 28px; border: 1px solid #d4dee5; border-radius: 16px; background: #f3f5f7; }
.global-search-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.global-search-heading > svg { flex: 0 0 24px; width: 24px; height: 24px; padding: 11px; box-sizing: content-box; border-radius: 13px; background: #e1e9ef; color: #365972; }
.global-search-heading h2 { margin: 0; color: #263f54; font: 800 20px/1.6 Cairo,Noto,sans-serif; }
.global-search-heading p { margin: 4px 0 0; font-size: 12px; color: #596c7c; }
.global-search-form label { display: block; margin-bottom: 7px; font-size: 13px; color: #334c5e; }
.global-search-input-row { display: flex; gap: 8px; }
.global-search-input-row input { flex: 1; width: 100%; min-width: 0; border: 1px solid #b9cbd7; border-radius: 10px; padding: 12px 14px; background: white; color: #263f54; font: 600 15px/1.7 Cairo,Noto,sans-serif; }
.global-search-input-row input::placeholder { color: #71828d; font-weight: 400; }
.global-search-input-row button,.global-search-more { border: 1px solid #bdcbd5; border-radius: 10px; padding: 10px 14px; background: #e5ebef; color: #365972; font: 600 12px/1.7 Cairo,Noto,sans-serif; cursor: pointer; }
.global-search-input-row button:disabled { opacity: .5; cursor: default; }
.global-search-status { margin: 12px 0 0; color: #526878; font-size: 12px; line-height: 1.9; }
.global-search-results { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; list-style: none; margin: 16px 0 0; padding: 0; }
.global-search-results > li { min-width: 0; }
.global-search-result { --result-ink: #126679; --result-bg: #e6f7fb; display: flex; flex-direction: column; align-items: start; gap: 10px; height: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #d7e0e6; border-inline-start: 3px solid var(--result-ink); border-radius: 11px; background: #fff; color: #263f54; text-decoration: none; }
.global-search-result[data-combination-type="ternary"] { --result-ink: #a64b1b; --result-bg: #fff0e2; }
.global-search-result[data-combination-type="quaternary"] { --result-ink: #4656a3; --result-bg: #eef0ff; }
.global-search-result:hover { border-color: var(--result-ink); background: #fcfdff; }
.global-search-badge { display: inline-block; border-radius: 6px; padding: 3px 7px; color: var(--result-ink); background: var(--result-bg); font: 700 11px/1.6 Cairo,Noto,sans-serif; }
.global-search-result h3 { margin: 0; font: 700 14px/1.9 Cairo,Noto,sans-serif; overflow-wrap: anywhere; }
.global-search-result-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid #edf1f4; font-size: 10px; color: #627380; }
.global-search-result-footer > span:last-child { color: var(--result-ink); }
.global-search-more { display: block; margin: 16px auto 0; min-width: 160px; }
.combinations-global-search :is(a,button,input):focus-visible { outline: 3px solid #718da3; outline-offset: 3px; }
.combinations-global-search [hidden] { display: none !important; }
@media(max-width:900px) { .global-search-results { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) {
 .combinations-global-search { padding: 14px 11px; }
 .global-search-heading h2 { font-size: 17px; }
 .global-search-heading { gap: 8px; }
 .global-search-heading > svg { flex-basis: 20px; width: 20px; height: 20px; padding: 8px; }
 .global-search-input-row button { padding: 8px; max-width: 65px; }
 .global-search-input-row input { padding: 10px; font-size: 14px; }
 .global-search-result { padding: 10px; }
 .global-search-result h3 { font-size: 13px; }
}
.combination-entry { --entry-ink: #126679; --entry-bg: #e6f7fb; --entry-edge: #b5e0ea; --entry-icon: #d0eef5; position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 18px 16px 22px; border: 1px solid var(--entry-edge); border-inline-start: 4px solid var(--entry-ink); border-radius: 14px; background: linear-gradient(125deg,#ffffffb8,var(--entry-bg)); color: var(--entry-ink); text-decoration: none; box-shadow: 0 4px 12px #17364808; transition: transform .18s,box-shadow .18s,border-color .18s; }
.combination-entry.apricot { --entry-ink: #a64b1b; --entry-bg: #fff0e2; --entry-edge: #f0cfb6; --entry-icon: #ffe2c8; }
.combination-entry.indigo { --entry-ink: #4656a3; --entry-bg: #eef0ff; --entry-edge: #cdd3f2; --entry-icon: #dfe4ff; }
.combination-entry-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--entry-icon); }
.combination-entry-icon svg { width: 42px; height: 38px; }
.combination-entry-icon circle { fill: #ffffffc9; }
.combination-entry-label { min-width: 0; font-family: Cairo,Noto,sans-serif; }
.combination-entry-label > span { font-size: 12px; line-height: 1.5; }
.combination-entry-label h2 { margin: 0; color: inherit; font: 800 21px/1.5 Cairo,Noto,sans-serif; }
.combination-entry-count { display: flex; flex-direction: column; align-items: center; gap: 1px; padding-inline-start: 12px; border-inline-start: 1px solid var(--entry-edge); }
.combination-entry-count b { font: 800 34px/1.15 Cairo,Noto,sans-serif; font-variant-numeric: tabular-nums; direction: ltr; }
.combination-entry-count > span { font: 600 11px/1.5 Cairo,Noto,sans-serif; }
.combination-entry-arrow { position: absolute; bottom: 6px; inset-inline-end: 13px; width: 15px; height: 15px; opacity: .7; }
.combination-entry:hover,.combination-entry:focus-visible { color: var(--entry-ink); border-color: var(--entry-ink); box-shadow: 0 7px 20px #17364814; transform: translateY(-2px); }
.combination-entry:focus-visible { outline: 2px solid var(--entry-ink); outline-offset: 3px; }
.combination-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.combination-title-row h1 { margin: 0; }
.combination-total { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border: 1px solid #d9dfe3; border-radius: 12px; background: #edf0f2; color: #334c5e; font: 600 12px/1.5 Cairo,Noto,sans-serif; white-space: nowrap; }
.combination-total b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.combination-types { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; max-width: 730px; margin: 0 auto 18px; }
.combination-type { --type-color: #234f72; --type-soft: #eaf2f8; appearance: none; min-width: 0; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 11px 13px; border: 1px solid #d9dfe3; border-radius: 14px; background: #edf0f2; color: var(--type-color); font: inherit; cursor: pointer; text-align: start; box-shadow: 0 2px 5px #29445b08; transition: background .18s,border-color .18s,box-shadow .18s; }
.combination-type[data-type="description"] { --type-color: #236b60; --type-soft: #eaf5f1; }
.combination-type[data-type="verb"] { --type-color: #855b24; --type-soft: #fbf3e6; }
.combination-type .type-symbol { width: 34px; height: 34px; padding: 6px; border-radius: 9px; background: var(--type-soft); grid-row: 1 / 3; box-sizing: border-box; }
.combination-type strong { display: block; font: 700 16px/1.8 Cairo,Noto,sans-serif; }
.combination-type .type-count { font-size: 11px; line-height: 1.7; color: #617181; }
.combination-type .type-count b { color: #334c5e; font: 800 17px/1.5 Cairo,Noto,sans-serif; font-variant-numeric: tabular-nums; }
.combination-type:hover { background: #e4e9ed; border-color: #b8c9d4; }
.combination-type[aria-pressed="true"] { background: #dce4e9; border-color: var(--type-color); box-shadow: inset 0 0 0 1px var(--type-color); }
.combination-type:focus-visible,.combination-card summary:focus-visible,.combination-reset:focus-visible { outline: 3px solid #b17b29; outline-offset: 3px; }
.combination-tools { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.combination-tools .category-search { flex: 1; padding: 10px 14px; }
.combination-reset { appearance: none; border: 1px solid #b9ccda; border-radius: 7px; padding: 12px 16px; background: white; color: var(--blue); font: 600 13px/1.6 Noto,Arial,sans-serif; cursor: pointer; white-space: nowrap; }
.combination-status { color: var(--muted); font-size: 13px; margin: 0 2px 18px; }
.combination-scope { color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 18px; }
.combination-class-filter { display:flex; gap:12px; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.combination-class-filter select { max-width:100%; padding:9px 12px; border:1px solid #b9ccda; border-radius:7px; background:#fff; color:var(--ink); font:inherit; }
.combination-class { display:block; width:fit-content; margin-top:8px; padding:1px 8px; border-radius:4px; background:var(--soft); color:var(--tone); font:400 11px/1.8 Noto,Arial,sans-serif; }
.combination-units { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 26px; padding-inline-start:24px; font-size:15px; line-height:1.9; }
.combination-group { --tone:#1767b0; --soft:#eef5fc; margin-bottom: 26px; }
.combination-group[data-kind="description"] { --tone:#177264; --soft:#edf7f4; }
.combination-group[data-kind="verb"] { --tone:#8a5f22; --soft:#faf4e8; }
.combination-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; align-items: stretch; }
.combination-card { border: 1px solid var(--line); border-inline-start: 3px solid var(--tone); border-radius: 10px; background: white; min-width: 0; overflow: hidden; scroll-margin-top: 20px; box-shadow: 0 2px 4px #22374e04; }
.combination-card summary { height: 100%; min-height: 112px; box-sizing: border-box; padding: 11px 12px 8px; cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 16px; grid-template-rows: 1fr auto; gap: 7px; align-items: start; }
.combination-card summary::-webkit-details-marker { display: none; }
.combination-card summary::after { content: '+'; grid-column: 2; grid-row: 1; font-size: 23px; line-height: 1.3; color: var(--tone); text-align: center; }
.combination-card[open] summary::after { content: '−'; }
.combination-card summary:hover { background: var(--soft); }
.combination-card h3 { margin: 0; font: 700 15px/1.9 Cairo,Noto,sans-serif; overflow-wrap: anywhere; }
.combination-card-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 28px; border-top: 1px solid #eaf0f4; padding-top: 6px; }
.combination-occurrences { display: inline-flex; align-items: center; gap: 7px; color: #5a6b7d; font: 400 11px/1.6 Noto,Arial,sans-serif; }
.combination-occurrences b { display: inline-grid; place-items: center; min-width: 25px; height: 24px; padding: 0 4px; box-sizing: border-box; border-radius: 6px; background: var(--soft); color: var(--tone); font: 700 14px/1.4 Cairo,Noto,sans-serif; }
.combination-open-label { color: var(--tone); font: 400 10px/1.6 Noto,Arial,sans-serif; white-space: nowrap; }
.combination-card .combination-reference { color: var(--muted); font: 400 11px/1.8 Noto,Arial,sans-serif; }
.combination-card[open] { grid-column: 1 / -1; }
.combination-card[open] summary { height: auto; min-height: 0; background: var(--soft); }
.combination-card[open] .combination-card-bottom { justify-content: flex-start; gap: 18px; }
.combination-evidence { padding: 0 16px 14px; }
.combination-evidence .verse { padding: 12px 17px; background: #fbfcfe; }
.combination-evidence .verse:last-child { margin-bottom: 0; }
.combination-evidence .verse p { font-size: 27px; margin-bottom: 7px; }
.combination-evidence mark { color: var(--tone); background: var(--soft); box-shadow: 0 2px 0 var(--tone); }
.combination-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; padding: 8px 12px; border-inline-start: 2px solid var(--line); }
.combination-empty { text-align: center; padding: 55px 20px; margin: 18px 0 40px; border: 1px dashed #c5d3df; border-radius: 10px; background: #fff; color: var(--muted); }
.combination-empty p { margin: 0; }
.combination-card[hidden],.combination-group[hidden],.combination-empty[hidden] { display: none; }
.combination-noscript { margin: 10px 0; color: var(--muted); font-size: 13px; }
@media(max-width:760px) {
 .combinations-map { gap: 8px; }
 .combination-examples { margin-top: 8px; padding: 6px 9px; border-radius: 12px; }
 .combination-examples a { padding: 9px 2px; font-size: 13px; }
 .combination-entry { grid-template-columns: 1fr; justify-items: center; padding: 12px 7px 17px; text-align: center; gap: 6px; border-inline-start-width: 1px; border-top: 3px solid var(--entry-ink); border-radius: 12px; }
 .combination-entry-icon { width: 43px; height: 43px; border-radius: 12px; }
 .combination-entry-icon svg { width: 35px; height: 32px; }
 .combination-entry-label h2 { font-size: 17px; }
 .combination-entry-count { width: 100%; padding: 6px 0 0; border-inline-start: 0; border-top: 1px solid var(--entry-edge); }
 .combination-entry-count b { font-size: 29px; }
 .combination-entry-arrow { width: 12px; height: 12px; inset-inline-end: 6px; bottom: 5px; }
 .combination-type strong { font-size: 15px; }
 .combination-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
}
@media(max-width:480px) {
 .combination-units { grid-template-columns:1fr; }
 .combination-types { gap: 6px; }
 .combination-title-row { gap: 8px; }
 .combination-total { padding: 3px 9px; }
 .combination-total b { font-size: 23px; }
 .combination-type { grid-template-columns: 1fr; padding: 9px 4px; text-align: center; }
 .combination-type .type-symbol { display: none; }
 .combination-type strong { font-size: 14px; }
 .combination-tools { align-items: stretch; gap: 7px; }
 .combination-tools .category-search { display: block; padding: 8px; }
 .combination-tools .category-search label { display: block; margin-bottom: 5px; }
 .combination-reset { padding: 8px; white-space: normal; max-width: 78px; }
 .combination-card summary { padding: 9px 8px 7px; gap: 5px; }
 .combination-card h3 { font-size: 13px; }
 .combination-card-bottom { gap: 2px; }
 .combination-occurrences { gap: 4px; font-size: 10px; }
 .combination-open-label { font-size: 9px; }
 .combination-evidence { padding: 0 9px 10px; }
 .combination-evidence .verse { padding: 10px; }
 .combination-evidence .verse p { font-size: 25px; }
}
@media(min-width:761px) and (max-width:1150px) {
 .combination-entry { grid-template-columns: 44px minmax(0,1fr); padding: 13px 12px 15px; gap: 7px; }
 .combination-entry-icon { width: 44px; height: 44px; }
 .combination-entry-icon svg { width: 36px; height: 34px; }
 .combination-entry-count { grid-column: 1/-1; flex-direction: row; gap: 6px; padding: 5px 0 0; border-inline-start: 0; border-top: 1px solid var(--entry-edge); }
 .combination-entry-count b { font-size: 30px; }
}
@media(max-width:600px) {
 .combinations-map { grid-template-columns: 1fr; gap: 18px; }
 .combination-entry { grid-template-columns: 43px minmax(0,1fr) auto; justify-items: stretch; gap: 10px; padding: 12px 14px 16px; text-align: start; }
 .combination-entry-count { width: auto; padding: 0; padding-inline-start: 12px; border-top: 0; border-inline-start: 1px solid var(--entry-edge); }
 .combination-examples a { min-height: 42px; }
}
@media(max-width:350px) {
 .combinations-map { gap: 5px; }
 .combination-entry { padding-inline: 4px; }
 .combination-entry-label h2 { font-size: 15px; }
}
@media(prefers-reduced-motion:reduce) { .combination-type,.combination-entry { transition: none; } .combination-entry:hover,.combination-entry:focus-visible { transform: none; } }
@media print {
 .combination-tools,.combination-types,.combination-status,.combinations-map { display: none; }
 .combination-list { display: block; }
 .combination-card { margin-bottom: 14px; }
 .combination-card::details-content { content-visibility: visible; display: block; }
 .combination-card[hidden],.combination-group[hidden] { display: none !important; }
}

.combinations-main .intro .combination-count-note { font-size: 12px; margin-top: 7px; }
.combination-variant { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.combination-evidence-count { margin: 12px 0; font-size: 13px; color: var(--tone); }
.combination-breakdown-wrap { overflow-x: auto; margin: 12px 0 18px; }
.combination-breakdown { width: 100%; border-collapse: collapse; font-size: 13px; text-align: start; }
.combination-breakdown caption { text-align: start; font-weight: 700; padding-bottom: 8px; }
.combination-breakdown th,.combination-breakdown td { padding: 8px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.combination-breakdown thead { background: var(--soft); }
.combination-breakdown tbody th { font-weight: 400; }

/* The quartet audit is separate from the compact catalogue card grid. */
.combination-review-link { font-size: 13px; margin: 4px 0 18px; }
.quartet-audit .audit-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.quartet-audit .audit-totals a { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f4f6fb; text-align: center; text-decoration: none; }
.quartet-audit .audit-totals b { font-size: 30px; }
.quartet-audit .audit-totals span { font-size: 13px; }
.quartet-audit .audit-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.quartet-audit .audit-tools label { display: flex; flex: 1 1 180px; flex-direction: column; gap: 6px; font-size: 13px; }
.quartet-audit .audit-tools label:first-child { flex-grow: 2; }
.quartet-audit input,.quartet-audit select,.quartet-audit button { font: inherit; padding: 10px; border: 1px solid #c5d3df; border-radius: 8px; background: white; color: #263e52; min-width: 0; }
.quartet-audit button { cursor: pointer; }
.quartet-audit .audit-card { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: white; scroll-margin-top: 20px; overflow: hidden; }
.quartet-audit .audit-card > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 15px; cursor: pointer; background: #f7f9fc; }
.quartet-audit .audit-label { flex: 1 1 260px; font-weight: 700; line-height: 1.9; }
.quartet-audit .audit-id { direction: ltr; font-variant-numeric: tabular-nums; color: #53677c; }
.quartet-audit .audit-badge { border-radius: 6px; background: #e4eaf1; padding: 3px 8px; font-size: 12px; white-space: nowrap; }
.quartet-audit [data-decision="keep"] .audit-badge { background: #e4f3ec; color: #216149; }
.quartet-audit [data-decision="hold"] .audit-badge { background: #fff0cf; color: #775013; }
.quartet-audit [data-decision="exclude"] .audit-badge { background: #f6e8e5; color: #854b3e; }
.quartet-audit .audit-evidence { padding: 12px 18px 20px; }
.quartet-audit .audit-evidence h2 { font-size: 16px; margin-top: 20px; }
.quartet-audit .audit-reason { border-inline-start: 3px solid #758da8; padding: 12px; background: #f4f6fa; line-height: 2; }
.quartet-audit .verse p { font-size: 27px; }
.quartet-audit [hidden] { display: none !important; }
@media(max-width:480px) { .quartet-audit .audit-totals { gap: 6px; } .quartet-audit .audit-totals a { padding: 12px 5px; } .quartet-audit .audit-evidence { padding: 10px; } .quartet-audit .verse p { font-size: 25px; } }
@media print { .quartet-audit .audit-tools,.quartet-audit .audit-downloads { display: none; } .quartet-audit .audit-card::details-content { content-visibility: visible; display: block; } }

/* Single terms share the established card and Arabic reading layout. */
.combination-entry.sage { --entry-ink:#336950; --entry-bg:#edf5ed; --entry-edge:#c1d7c4; --entry-icon:#d9e9db; }
.unary-group { --tone:#336950; --soft:#edf5ed; }
.unary-no-evidence { padding:20px 0; line-height:2; color:var(--muted); }
.global-search-result[data-combination-type="unary"] { --result-ink:#336950; --result-bg:#edf5ed; }
@media(min-width:1151px) { .combinations-map .combination-entry { grid-template-columns:38px minmax(0,1fr); padding:15px 11px; gap:8px; } .combinations-map .combination-entry-icon { width:38px;height:38px; } .combinations-map .combination-entry-icon svg { width:32px; height:30px; } .combinations-map .combination-entry-label h2 { font-size:19px; } .combinations-map .combination-entry-count { grid-column:1/-1; flex-direction:row; justify-content:center; padding:6px 0 0; border-inline-start:0; border-top:1px solid var(--entry-edge); } }
@media(min-width:601px) and (max-width:900px) { .combinations-map { grid-template-columns:repeat(2,minmax(0,1fr)); } }
