/* Идиомы, фразовые глаголы, сокращения */
.oe-lex { --c: #008ada; --ink: #26323a; --mute: #6b808c; --line: #e6edf2; --bg: #f5f9fc; margin: 22px 0 20px; }
.oe-lex--idiom { --c: #7a5af8; }
.oe-lex--abbr { --c: #e8890c; }
.oe-lex [hidden] { display: none !important; }

.oe-lex__bar { padding: 16px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, #fff), #fbfdff); margin-bottom: 18px; }
.oe-lex__search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid transparent; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0, 80, 130, .08); color: var(--mute); }
.oe-lex__search:focus-within { border-color: var(--c); }
.oe-lex__search svg { width: 20px; height: 20px; flex: none; }
.oe-lex__search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 0; font-size: 17px; background: none; color: var(--ink); }

.oe-lex__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.oe-lex__chips button { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; transition: all .12s; }
.oe-lex__chips button span { margin-left: 3px; color: var(--mute); font-size: 12px; }
.oe-lex__chips button:hover { border-color: var(--c); }
.oe-lex__chips button.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.oe-lex__chips button.is-active span { color: rgba(255, 255, 255, .8); }
.oe-lex__status { min-height: 0; margin-top: 8px; color: var(--mute); font-size: 14px; }
.oe-lex__status:empty { display: none; }

.oe-lex__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.oe-lex__card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .15s, border-color .15s; }
.oe-lex__card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(0, 60, 100, .28); border-color: var(--c); color: var(--ink); }
.oe-lex__term { font-size: 21px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.oe-lex__eq { color: var(--mute); font-style: normal; font-weight: 400; }
.oe-lex__term em { font-style: normal; font-weight: 500; color: var(--c); }
.oe-lex__tr { font-size: 16px; font-weight: 500; line-height: 1.35; }
.oe-lex__desc { color: var(--mute); font-size: 14px; line-height: 1.4; }
.oe-lex__ex { margin-top: 4px; padding-left: 10px; border-left: 3px solid color-mix(in srgb, var(--c) 30%, #fff); font-size: 14px; line-height: 1.4; color: #3d4b53; }
.oe-lex__ex small { display: block; margin-top: 2px; color: var(--mute); font-size: 13px; }
.oe-lex__forms { margin-top: auto; padding-top: 6px; color: var(--mute); font-size: 13px; }
.oe-lex__empty { padding: 24px; text-align: center; color: var(--mute); }

@media (max-width: 600px) {
	.oe-lex__bar { padding: 12px; }
	.oe-lex__grid { grid-template-columns: 1fr; gap: 10px; }
	.oe-lex__card { padding: 13px 14px; }
	.oe-lex__term { font-size: 19px; }
}

.oe-lex__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.oe-lex--abbr .oe-lex__tr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Рубрики со статьями: минимализм, без цветных акцентов */
.oe-lex--dialog, .oe-lex--diff, .oe-lex--note, .oe-lex--interest { --c: #26323a; }
.oe-lex--dialog .oe-lex__bar, .oe-lex--diff .oe-lex__bar, .oe-lex--note .oe-lex__bar, .oe-lex--interest .oe-lex__bar { background: var(--bg); }
.oe-lex__grid--posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.oe-lex__card--post { gap: 6px; padding: 18px 20px; }
.oe-lex__card--post:hover { transform: none; border-color: #c9d6de; box-shadow: 0 4px 14px -8px rgba(0, 60, 100, .25); }
.oe-lex__kicker { color: var(--mute); font-size: 12px; font-weight: 500; }
.oe-lex__card--post .oe-lex__term { font-size: 19px; }
.oe-lex--diff .oe-lex__card--post .oe-lex__term { font-size: 22px; color: var(--ink); }
.oe-lex__card--post .oe-lex__tr { font-size: 14px; font-weight: 400; color: var(--mute); }
.oe-lex__card--post .oe-lex__desc { -webkit-line-clamp: 3; font-size: 14px; line-height: 1.5; }
.oe-lex__more { margin-top: auto; padding-top: 6px; color: var(--mute); font-size: 14px; font-weight: 400; }
.oe-lex__card--post:hover .oe-lex__more { color: var(--ink); }
@media (max-width: 600px) {
	.oe-lex__grid--posts { grid-template-columns: 1fr; }
	.oe-lex__card--post { padding: 14px 16px; }
}
