/* Словарь «Мақалдағы сөздер»: /sozdik/ и /sozdik/<слово>/.
   Подключается только на этих страницах. Цвета — из дизайн-системы сайта
   (styles.scss): cream #F7F4EF, dark #2D2D2D, gold #E8B84B, border #EDE9E0. */

.gl {
	--gl-gold: #E8B84B;
	--gl-gold-ink: #8A7040;
	--gl-gold-soft: #FFF8E6;
	--gl-ink: #1F1F1F;
	--gl-text: #3A3A3A;
	--gl-muted: #7A7A7A;
	--gl-line: #EDE9E0;
	--gl-card: #FFFFFF;
	--gl-serif: Georgia, "Times New Roman", serif;
	max-width: 760px;
	margin: 0 auto;
	padding: 20px 16px 56px;
	color: var(--gl-text);
}
@media (min-width: 768px) { .gl { padding: 32px 24px 72px; } }

.gl a { color: inherit; }

/* Хлебные крошки */
.gl-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--gl-muted); margin-bottom: 20px; }
.gl-crumbs a { color: var(--gl-muted); text-decoration: none; }
.gl-crumbs a:hover { color: var(--gl-ink); }
.gl-crumbs span[aria-current] { color: var(--gl-ink); font-weight: 600; }

/* Шапка слова */
.gl-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--gl-gold-ink); text-decoration: none; margin-bottom: 10px; }
.gl-title { font-family: var(--gl-serif); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--gl-ink); margin: 0 0 14px; }
.gl-title b { font-weight: 700; }
@media (min-width: 768px) { .gl-title { font-size: 44px; } }
.gl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gl-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px;
	background: var(--gl-card); border: 1px solid var(--gl-line); color: var(--gl-text); }
.gl-tag small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gl-muted); }

/* Ответ */
.gl-answer { position: relative; background: var(--gl-card); border-radius: 16px; padding: 22px 20px 20px 24px;
	box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(138,112,64,.08); margin-bottom: 16px; overflow: hidden; }
.gl-answer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gl-gold); }
@media (min-width: 768px) { .gl-answer { padding: 28px 32px 26px 36px; } }
.gl-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gl-gold-ink); margin: 0 0 10px; }
.gl-definition { font-size: 19px; line-height: 1.6; color: var(--gl-ink); margin: 0; }
@media (min-width: 768px) { .gl-definition { font-size: 21px; } }
.gl-senses { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--gl-line); list-style: none; counter-reset: sense 1; }
.gl-senses li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.6; margin-bottom: 8px; counter-increment: sense; }
.gl-senses li::before { content: counter(sense); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--gl-gold-soft); color: var(--gl-gold-ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Разделы */
.gl-card { background: var(--gl-card); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
@media (min-width: 768px) { .gl-card { padding: 24px 32px; } }
.gl-quote { font-family: var(--gl-serif); font-size: 18px; line-height: 1.6; color: var(--gl-ink); margin: 0; position: relative; padding-left: 28px; }
.gl-quote::before { content: "“"; position: absolute; left: -4px; top: -14px; font-size: 56px; line-height: 1; color: var(--gl-gold); }
.gl-examples { list-style: none; margin: 0; padding: 0; }
.gl-examples li { padding: 10px 0; border-bottom: 1px solid var(--gl-line); font-size: 16px; line-height: 1.6; }
.gl-examples li:last-child { border-bottom: 0; padding-bottom: 0; }
.gl-examples li:first-child { padding-top: 0; }
.gl mark { background: linear-gradient(transparent 58%, rgba(232,184,75,.45) 58%); color: inherit; font-weight: 700; padding: 0 1px; }

.gl-pair { display: grid; gap: 18px; }
@media (min-width: 640px) { .gl-pair { grid-template-columns: 1fr 1fr; } }
.gl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-chip { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 15px; background: #F7F4EF; color: var(--gl-ink);
	text-decoration: none; border: 1px solid transparent; }
a.gl-chip { background: var(--gl-gold-soft); border-color: rgba(232,184,75,.55); font-weight: 600; }
a.gl-chip:hover { background: var(--gl-gold); }
.gl-chip--anti { background: #F3F3F3; color: #555; }

.gl-origin { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--gl-text);
	padding: 16px 20px; border-radius: 14px; border: 1px dashed #D9CFB8; margin-bottom: 16px; }
.gl-origin svg { flex: none; margin-top: 2px; color: var(--gl-gold-ink); }
.gl-origin b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gl-gold-ink); margin-bottom: 2px; }

/* Мақалы со словом */
.gl-section-title { display: flex; align-items: baseline; gap: 10px; font-size: 20px; font-weight: 700; color: var(--gl-ink); margin: 36px 0 14px; }
.gl-section-title span { font-size: 14px; font-weight: 600; color: var(--gl-muted); }
.gl-plist { list-style: none; margin: 0; padding: 0; background: var(--gl-card); border-radius: 16px; overflow: hidden; }
.gl-plist li + li { border-top: 1px solid var(--gl-line); }
.gl-plist a { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 16px 20px; text-decoration: none; transition: background .15s; }
.gl-plist a:hover { background: #FDFBF6; }
.gl-ptext { font-family: var(--gl-serif); font-size: 18px; line-height: 1.45; color: var(--gl-ink); }
.gl-pmeaning { grid-column: 1; font-size: 14px; line-height: 1.55; color: var(--gl-muted); }
.gl-plist svg { grid-column: 2; grid-row: 1 / span 2; color: #C9B98F; }
@media (min-width: 768px) { .gl-plist a { padding: 18px 28px; } }

/* Дальше: похожие и соседние слова */
.gl-more { margin-top: 36px; }
.gl-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.gl-nav a { display: block; padding: 14px 16px; border-radius: 14px; background: var(--gl-card); text-decoration: none; border: 1px solid var(--gl-line); }
.gl-nav a:hover { border-color: var(--gl-gold); }
.gl-nav small { display: block; font-size: 12px; color: var(--gl-muted); margin-bottom: 2px; }
.gl-nav strong { font-family: var(--gl-serif); font-size: 18px; font-weight: 700; color: var(--gl-ink); }
.gl-nav .gl-next { text-align: right; grid-column: 2; }
.gl-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; color: var(--gl-gold-ink) !important; text-decoration: none; }
.gl-all:hover { text-decoration: underline; }

/* Указатель */
.gl-index-head { margin-bottom: 20px; }
.gl-lead { font-size: 16px; line-height: 1.6; color: var(--gl-text); margin: 0 0 6px; max-width: 560px; }
.gl-count { font-size: 14px; color: var(--gl-muted); }
.gl-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 8px; }
.gl-letters a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
	background: var(--gl-card); border: 1px solid var(--gl-line); font-weight: 700; text-decoration: none; color: var(--gl-ink); }
.gl-letters a:hover { border-color: var(--gl-gold); background: var(--gl-gold-soft); }
.gl-group { scroll-margin-top: 80px; }
.gl-letter { font-family: var(--gl-serif); font-size: 32px; color: var(--gl-gold); margin: 28px 0 10px; line-height: 1; }
.gl-words { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .gl-words { grid-template-columns: 1fr 1fr; } }
.gl-words a { display: block; height: 100%; box-sizing: border-box; padding: 16px 18px; border-radius: 14px; background: var(--gl-card);
	text-decoration: none; border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.gl-words a:hover { border-color: var(--gl-gold); transform: translateY(-1px); }
.gl-words strong { font-family: var(--gl-serif); font-size: 20px; color: var(--gl-ink); }
.gl-words em { display: block; font-style: normal; font-size: 12px; color: var(--gl-gold-ink); margin: 2px 0 6px; }
.gl-words span { display: block; font-size: 14px; line-height: 1.5; color: var(--gl-muted); }
