/* ==========================================================================
   Dictionary.ge — Modern Academic Redesign
   Brand Palette: Deep Margaliti Burgundy (#7A004B) + Editorial Warm Paper
   ========================================================================== */

:root {
  /* Brand */
  --brand-900: #4A032D;
  --brand-800: #64053D;
  --brand-700: #7A004B;
  --brand-600: #961060;
  --brand-100: #FCECF4;
  --brand-50: #FDF6FA;

  /* Neutrals — Warm Academic Editorial */
  --bg-page: #F8F7F4;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F2EFEA;
  --bg-hover: #F5F2ED;

  --text-primary: #1A181B;
  --text-secondary: #4E4A52;
  --text-muted: #76707B;

  --border-light: #E8E4DC;
  --border-strong: #D5CFC5;

  /* Semantic */
  --accent-green: #166534;
  --accent-green-bg: #ECFDF5;
  --accent-blue: #1D4ED8;
  --accent-blue-bg: #EFF6FF;
  --accent-amber: #B45309;
  --mark-bg: #FEF08A;
  --mark-text: #1A181B;

  /* Shadows & Radii */
  --shadow-sm: 0 1px 2px rgba(26, 24, 27, 0.05);
  --shadow-md: 0 6px 20px rgba(26, 24, 27, 0.07);
  --shadow-lg: 0 16px 40px rgba(26, 24, 27, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', 'Noto Serif Georgian', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --brand-700: #E55EA8;
  --brand-600: #F472B6;
  --brand-100: rgba(229, 94, 168, 0.2);
  --brand-50: rgba(229, 94, 168, 0.11);

  --bg-page: #131115;
  --bg-surface: #1C1920;
  --bg-subtle: #25212A;
  --bg-hover: #2C2733;

  --text-primary: #F4F2F6;
  --text-secondary: #C6C0CC;
  --text-muted: #938C9B;

  --border-light: #2E2936;
  --border-strong: #413B4B;

  --accent-green: #6EE7B7;
  --accent-green-bg: rgba(16, 185, 129, 0.14);
  --accent-blue: #93C5FD;
  --accent-blue-bg: rgba(59, 130, 246, 0.15);
  --mark-bg: rgba(250, 204, 21, 0.3);
  --mark-text: #FEF9C3;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-700);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
[data-theme="dark"] .site-header {
  background: #6E0F45;
  border-bottom-color: #520B33;
}
[data-theme="dark"] .site-header .brand-name,
[data-theme="dark"] .site-header .brand-sub { color: #FFFFFF; }
[data-theme="dark"] .site-header .nav-link { color: rgba(255, 255, 255, 0.9); }
[data-theme="dark"] .site-header .nav-link:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
[data-theme="dark"] .site-header .nav-link:hover i { color: #FFFFFF; }
[data-theme="dark"] .site-header .icon-btn { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #FFFFFF; }
[data-theme="dark"] .site-header .icon-btn:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.5); color: #FFFFFF; }
[data-theme="dark"] .site-header .lang-switch { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
[data-theme="dark"] .site-header .lang-btn { color: rgba(255, 255, 255, 0.85); }
[data-theme="dark"] .site-header .lang-btn.active { background: #FFFFFF; color: var(--brand-800); }
/* მობილურის მენიუ ჰედერის შიგნითაა: იქ ჩვეულებრივი ბნელი ფერები */
[data-theme="dark"] .site-header .mobile-drawer .lang-switch { background: var(--bg-subtle); border-color: var(--border-light); }
[data-theme="dark"] .site-header .mobile-drawer .lang-btn { color: var(--text-muted); }
[data-theme="dark"] .site-header .mobile-drawer .lang-btn.active { background: var(--bg-surface); color: var(--brand-700); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  text-decoration: none !important;
}

.brand-emblem {
  display: flex;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(122, 0, 75, 0.1);
}

.brand-emblem img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.nav-link i {
  font-size: 17px;
  opacity: 0.78;
}
.nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}
.nav-link:hover i {
  color: var(--brand-700);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 19px;
  transition: all 0.15s;
}
.icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.lang-switch {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}
.lang-btn.active {
  background: var(--bg-surface);
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-outline i {
  font-size: 16px;
}
.btn-outline:hover {
  border-color: var(--brand-700);
  color: var(--brand-700);
  background: var(--brand-50);
}

.btn-primary {
  border: none;
  background: var(--brand-700);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: var(--brand-600);
}

.mobile-menu-btn {
  display: none;
}

.mobile-drawer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 12px 0;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.mobile-nav-link i {
  font-size: 18px;
  color: var(--brand-700);
}
.mobile-nav-link:hover {
  background: var(--bg-subtle);
}

/* ==========================================================================
   Hero & Smart Search Band
   ========================================================================== */
.search-band {
  position: relative;
  background:
    radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.14), transparent 45%),
    radial-gradient(circle at 15% 88%, rgba(255, 200, 232, 0.14), transparent 42%),
    linear-gradient(135deg, #6E0744 0%, #940F5D 52%, #7A064B 100%);
  color: #FFFFFF;
  padding: 40px 0 22px;
  transition: padding 0.2s ease;
}

.hero-watermark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  color: #FFE4F2;
  opacity: 0.22;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 62% 85% at 50% 50%, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 1) 100%);
  mask-image: radial-gradient(ellipse 62% 85% at 50% 50%, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 1) 100%);
}

.hero-watermark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.search-band-inner {
  position: relative;
  z-index: 1;
}

.search-band.compact {
  padding: 20px 0 14px;
}

.search-band.compact .hero-watermark {
  opacity: 0.07;
}

.search-band.compact .hero-copy {
  display: none;
}

.hero-copy {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 24px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

/* Search Form */
.search-form {
  max-width: 820px;
  margin: 0 auto;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 14px 36px rgba(34, 0, 20, 0.28);
  border: 2px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input-wrap:focus-within {
  border-color: #F472B6;
  box-shadow: 0 16px 40px rgba(34, 0, 20, 0.36);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  font-size: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  padding: 10px 4px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-inline-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.detected-lang-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-100);
  color: var(--brand-700);
  white-space: nowrap;
}

.kbd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s;
}
.kbd-toggle .kbd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}
.kbd-toggle[aria-pressed="true"] {
  background: var(--brand-100);
  border-color: var(--brand-700);
  color: var(--brand-700);
}
.kbd-toggle[aria-pressed="true"] .kbd-dot {
  background: var(--brand-700);
}

.clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
}
.clear-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: var(--brand-700);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 10px;
  transition: background 0.15s, transform 0.1s;
}
.search-submit i {
  font-size: 17px;
}
.search-submit:hover {
  background: var(--brand-600);
}
.search-submit:active {
  transform: scale(0.98);
}

/* Autocomplete Dropdown */
.suggest-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
}

.suggest-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.suggest-item:last-child {
  border-bottom: none;
}
.suggest-item:hover,
.suggest-item.active {
  background: var(--brand-50);
}

.suggest-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.suggest-word {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

.suggest-pos {
  font-size: 12px;
  font-style: italic;
  color: var(--brand-700);
}

.suggest-gloss {
  font-size: 13.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52%;
}

.suggest-footer {
  padding: 9px 16px;
  background: var(--bg-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Quick Chips */
.search-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.chips-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-right: 2px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.15s;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Alphabet Bar */
.alphabet-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.alpha-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.alpha-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.alpha-btn.active {
  background: #FFFFFF;
  color: #7A004B;
}

/* ==========================================================================
   Main Workspace Grid
   ========================================================================== */
.main-area {
  flex: 1;
  padding-top: 22px;
  padding-bottom: 48px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 22px;
  align-items: start;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card-padded {
  padding: 20px 24px;
}

/* ==========================================================================
   Homepage Components
   ========================================================================== */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-700);
  margin-bottom: 10px;
}

.wotd-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 0;
}

.wotd-banner {
  padding: 18px 24px 16px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-700);
}

.wotd-body {
  padding: 18px 24px 20px;
}

.wotd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.wotd-word {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.wotd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.pos-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 12.5px;
  font-weight: 600;
  font-style: italic;
}

.ipa-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-primary);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s;
}
.audio-btn:hover {
  border-color: var(--brand-700);
  color: var(--brand-700);
  background: var(--brand-50);
}
.audio-btn.playing {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #FFFFFF;
}

.wotd-def {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.wotd-example {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--brand-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
}
.wotd-example em {
  display: block;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.wotd-example span {
  color: var(--text-secondary);
}

.wotd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-700);
  background: none;
  border: none;
  padding: 0;
}
.link-arrow:hover {
  text-decoration: underline;
}

/* Quick Category Strip */
.quick-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.cat-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-align: left;
  transition: all 0.15s;
}
.cat-tile:hover {
  border-color: var(--brand-700);
  background: var(--brand-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cat-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}

.cat-sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Home Feature Grid (Recent + Highlights) */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.mini-entry-card {
  padding: 15px 17px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.mini-entry-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  border-left-color: var(--brand-700);
  box-shadow: var(--shadow-md);
}

.mini-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.mini-entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mini-speak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.15s;
}
.mini-speak-btn:hover {
  border-color: var(--brand-700);
  color: var(--brand-700);
  background: var(--brand-50);
}

.mini-entry-word {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.mini-entry-gloss {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Dictionary Entry Detail View
   ========================================================================== */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13.5px;
  padding: 4px 0;
}
.back-btn:hover {
  color: var(--brand-700);
}

.entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}

.entry-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-headword {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.entry-headword sup {
  font-size: 0.55em;
  color: var(--brand-700);
  margin-left: 1px;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.action-chip:hover {
  border-color: var(--brand-700);
  color: var(--brand-700);
  background: var(--brand-50);
}
.action-chip.saved {
  background: var(--brand-100);
  border-color: var(--brand-700);
  color: var(--brand-700);
}

/* Homonym Tabs */
.homonym-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.homonym-tab {
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s;
}
.homonym-tab:hover {
  border-color: var(--brand-700);
  color: var(--brand-700);
}
.homonym-tab.active {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #FFFFFF;
}

/* Senses */
.sense-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sense-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sense-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 13.5px;
  margin-top: 2px;
}

.sense-body {
  min-width: 0;
}

.sense-translation {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.5;
}

.sense-subs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
  padding-left: 12px;
  border-left: 2px solid var(--border-light);
}

.sub-sense-line {
  font-size: 15px;
  color: var(--text-primary);
}
.sub-num {
  font-weight: 700;
  color: var(--brand-700);
  margin-right: 6px;
}

.examples-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.example-row {
  padding: 9px 13px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  line-height: 1.55;
}

.example-en {
  font-weight: 500;
  color: var(--text-primary);
}

.example-ka {
  color: var(--text-secondary);
  margin-left: 6px;
}

/* Idioms & Special Lexicographic Blocks */
.idioms-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.idioms-title {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.idiom-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-bottom: 10px;
}

.idiom-phrase {
  font-weight: 700;
  color: var(--brand-700);
  font-size: 15px;
}

.idiom-symbol {
  display: inline-block;
  margin-right: 6px;
  color: var(--accent-amber);
  font-weight: 700;
}

.idiom-meaning {
  font-size: 14.5px;
  color: var(--text-primary);
}

/* Abbreviation Tooltip Trigger & Cross-References */
.abbr-term {
  color: var(--accent-green);
  border-bottom: 1.5px dotted var(--accent-green);
  cursor: help;
  font-weight: 500;
  padding: 0 1px;
  border-radius: 3px;
}
.abbr-term:hover {
  background: var(--accent-green-bg);
}

.xref-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent-blue);
  background: var(--accent-blue-bg);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.xref-link:hover {
  text-decoration: underline;
}

.expand-btn {
  margin-top: 18px;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: var(--bg-subtle);
  color: var(--brand-700);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
}
.expand-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand-700);
}

.entry-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.pager-btn:hover {
  border-color: var(--brand-700);
  color: var(--brand-700);
}

/* ==========================================================================
   Search Results View
   ========================================================================== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.results-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.smart-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  border: 1px solid color-mix(in srgb, var(--brand-700) 25%, transparent);
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 18px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card {
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.result-card:hover {
  border-color: var(--brand-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.result-card-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.result-word {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--brand-700);
}

.result-snippet {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

mark {
  background: var(--mark-bg);
  color: var(--mark-text);
  padding: 0 3px;
  border-radius: 4px;
}

.empty-state {
  text-align: center;
  padding: 46px 24px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.empty-state p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Sidebar Panels
   ========================================================================== */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  padding: 0;
  overflow: hidden;
}

.side-title {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-count-pill {
  background: var(--brand-100);
  color: var(--brand-700);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.side-body {
  padding: 10px 12px 12px;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-link {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.12s, color 0.12s;
}
.side-link:hover {
  background: var(--bg-subtle);
  color: var(--brand-700);
}
.side-link.active {
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
}

.side-link-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
}

/* Sister Dictionaries */
.sister-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sister-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color 0.15s, background 0.15s;
}
.sister-item:hover {
  text-decoration: none;
  border-color: var(--brand-700);
  background: var(--brand-50);
}

.side-title-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.side-title-group i {
  font-size: 16px;
  color: var(--brand-700);
}

.sister-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.sister-arrow {
  margin-left: auto;
  font-size: 15px;
  color: var(--text-muted);
  opacity: 0.6;
  transition: transform 0.15s, opacity 0.15s;
}
.sister-item:hover .sister-arrow {
  opacity: 1;
  color: var(--brand-700);
  transform: translate(2px, -2px);
}

.sister-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}

.sister-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 26px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.partner-pill i {
  font-size: 15px;
  color: var(--brand-700);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-meta p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.text-link:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* ==========================================================================
   Tooltip, Toast, Modal
   ========================================================================== */
.abbr-tooltip {
  position: fixed;
  z-index: 100;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #1E1B22;
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  background: #1E1B22;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 10, 18, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
}

.modal-body {
  padding: 20px 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.modal-body h4 {
  margin: 16px 0 6px;
  color: var(--text-primary);
}
.modal-body h4:first-child {
  margin-top: 0;
}

.abbr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.abbr-row {
  padding: 8px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.abbr-row strong {
  color: var(--accent-green);
}

.form-field {
  margin-bottom: 14px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 960px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-grid,
  .quick-cats {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }
  .header-inner {
    gap: 8px;
  }
  .header-actions {
    gap: 6px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand-name {
    font-size: 16.5px;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 12px;
  }
  .main-nav,
  .header-actions .btn-outline {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .brand-sub {
    display: none;
  }
  .search-band {
    padding: 26px 0 18px;
  }
  .search-input-wrap {
    padding: 4px 4px 4px 12px;
  }
  .search-input {
    font-size: 15px;
  }
  .search-submit {
    padding: 10px 14px;
    font-size: 13.5px;
  }
  .detected-lang-badge {
    display: none !important;
  }
  .card-padded {
    padding: 18px 16px;
  }
  .entry-header {
    flex-direction: column;
  }
  .sense-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }
  .abbr-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .search-band,
  .sidebar-col,
  .entry-actions,
  .entry-pager,
  .site-footer {
    display: none !important;
  }
  .workspace-grid {
    display: block;
  }
  .card {
    border: none;
    box-shadow: none;
  }
}


/* ---- ლექსიკონის სახელი ლოგოს გვერდით ---- */
.brand {
  min-width: 0;
  flex-shrink: 1;
}
.brand-text {
  min-width: 0;
}
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans Georgian', var(--font-sans);
  color: var(--brand-700);
  line-height: 1.18;
  white-space: nowrap;
}
.brand-name .bn-s {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.brand-name .bn-m {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.header-inner {
  height: 74px;
}
.brand {
  gap: 13px;
}
.brand-emblem {
  border-radius: 13px;
}
.brand-emblem img {
  width: 50px;
  height: 50px;
}
@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }
  .brand-emblem img {
    width: 42px;
    height: 42px;
  }
}
.brand-en .bn-s,
.brand-en .bn-m {
  text-transform: uppercase;
}
html[lang="en"] .brand-ka,
html:not([lang="en"]) .brand-en {
  display: none;
}
.main-nav .nav-link {
  white-space: nowrap;
}
.hero-copy {
  display: none;
}
#kbdToggle {
  display: none;
}
.search-form {
  display: flex;
  flex-direction: column;
}

/* ---- სარეკლამო ადგილები (ჯერ ცარიელი ჩარჩოები) ---- */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.ad-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ad-box {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}
.ad-side .ad-box {
  width: 300px;
  height: 250px;
}
.ad-bottom {
  margin-top: 26px;
}
.ad-bottom .ad-box {
  width: 728px;
  height: 90px;
}
.ad-size-m {
  display: none;
}
@media (max-width: 760px) {
  .ad-bottom .ad-box {
    width: 320px;
    height: 100px;
  }
  .ad-size-d {
    display: none;
  }
  .ad-size-m {
    display: inline;
  }
}
.ad-learners {
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 16px 18px;
  border: 0;
  background: linear-gradient(160deg, #DE6FA4 0%, #D0427E 100%);
  font-family: 'Noto Sans Georgian', var(--font-sans);
  overflow: hidden;
}
.adl-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #FFFFFF;
  text-decoration: none;
}
.adl-main img {
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}
.adl-small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}
.adl-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.adl-url {
  font-family: var(--font-mono);
  font-size: 12.5px;
  opacity: 0.9;
}
.adl-stores {
  display: flex;
  gap: 8px;
  width: 100%;
}
.adl-stores a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 11px;
  background: #FFFFFF;
  color: #2A1420;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(90, 10, 50, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}
.adl-stores a:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(90, 10, 50, 0.3);
}
.adl-stores i {
  font-size: 22px;
  color: #C2316F;
}
.adl-stores span {
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Noto Sans Georgian', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.adl-stores small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #7A5567;
}
.ad-barb {
  justify-content: flex-start;
  gap: 16px;
  padding: 0 22px 0 16px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: #2B2B2D;
  font-family: 'Noto Sans Georgian', var(--font-sans);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}
.ad-barb:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.ad-barb img {
  flex: none;
}
.adb-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.adb-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #2B2B2D;
}
.adb-desc {
  font-size: 12.5px;
  line-height: 1.35;
  color: #6A6A6E;
}
.adb-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 9px 15px;
  border-radius: 999px;
  background: #D0427E;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .ad-barb {
    gap: 10px;
    padding: 0 12px 0 8px;
  }
  .ad-barb img {
    width: 52px;
    height: 52px;
  }
  .adb-title {
    font-size: 15px;
  }
  .adb-desc {
    font-size: 11px;
  }
  .adb-cta span {
    display: none;
  }
  .adb-cta {
    padding: 8px;
  }
}
.ad-rot {
  max-width: 100%;
}
.ad-rot > a {
  display: none;
}
.ad-rot > a.on {
  display: flex;
  animation: adFade 0.5s ease;
}
@keyframes adFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ad-conf {
  background: #F6EEDD;
  border-color: #E6D9BD;
}
.adc-date {
  flex: none;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #7B1E2B;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFDF8;
  line-height: 1;
}
.adc-mon {
  width: 100%;
  padding: 4px 0;
  background: #7B1E2B;
  color: #F6EEDD;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.adc-days {
  padding: 7px 0 2px;
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #7B1E2B;
  white-space: nowrap;
}
.adc-year {
  padding-bottom: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #5E5446;
}
.adc-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7B1E2B;
}
.ad-conf .adb-title {
  color: #7B1E2B;
}
.ad-conf .adb-desc {
  color: #5E5446;
}
.ad-conf .adb-cta {
  background: #7B1E2B;
}
@media (max-width: 760px) {
  .adc-date {
    width: 56px;
  }
  .adc-days {
    font-size: 15px;
  }
  .adc-kicker {
    font-size: 9px;
  }
}
.ad-vet {
  background: #F4F7FC;
  border-color: #D9E2F0;
}
.ad-vet .adc-kicker {
  color: #4872AB;
}
.ad-vet .adb-title {
  color: #1F3350;
  font-size: 21px;
}
.ad-vet .adb-desc {
  color: #55637A;
}
.ad-vet .adb-cta {
  background: #4872AB;
}
/* ჩატვირთვამდე: ქვედა ბანერი დამალულია, შიგთავსის ადგილას მბრუნავი რგოლი */
body:not(.app-ready) .ad-bottom {
  display: none;
}
body:not(.app-ready) .workspace-grid {
  display: block;
  min-height: 60vh;
}
body:not(.app-ready) .workspace-grid::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 90px auto 0;
  border: 3px solid var(--border-strong);
  border-top-color: var(--brand-700);
  border-radius: 50%;
  animation: appSpin 0.8s linear infinite;
}
@keyframes appSpin {
  to { transform: rotate(360deg); }
}
.ad-pet {
  background: #F3EEDF;
  border-color: #E2D9C0;
}
.ad-pet .adc-kicker {
  color: #9A7A2E;
}
.ad-pet .adb-title {
  color: #22503D;
}
.ad-pet .adb-desc {
  color: #4F5F56;
}
.ad-pet .adb-cta {
  background: #22503D;
}
.ad-fonts {
  background: #FBF7F3;
  border-color: #E8DDD3;
}
.ad-fonts img {
  border-radius: 14px;
}
.ad-fonts .adc-kicker {
  color: #C2462F;
}
.ad-fonts .adb-title {
  color: #2B1810;
}
.ad-fonts .adb-desc {
  color: #6B5A50;
}
.ad-fonts .adb-cta {
  background: #2B1810;
}
/* ---- ფუტერი: პარტნიორების ლოგოები ---- */
.footer-partners {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
.partner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 26px;
  border-left: 1px solid var(--border-light);
  color: inherit;
  text-decoration: none;
}
.partner:first-child {
  padding-left: 0;
  border-left: 0;
}
.partner-logo {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.partner-logo img {
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
}
.partner:hover .partner-logo {
  border-color: var(--brand-700);
  box-shadow: 0 3px 10px rgba(122, 0, 75, 0.12);
}
.partner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.partner-role {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.partner-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}
.partner:hover .partner-name {
  color: var(--brand-700);
}
.partner-logo-fill,
.partner-logo-round,
.partner-logo-lex {
  border: 0;
  overflow: hidden;
}
.partner-logo-fill img,
.partner-logo-round img {
  max-width: none;
  max-height: none;
  width: 48px;
  height: 48px;
}
.partner-logo-round {
  border-radius: 50%;
  background: transparent;
}
.partner-logo-fill {
  border-radius: 11px;
}
.partner-logo-lex {
  border: 0;
  border-radius: 10px;
  background: #FFFFFF;
}
.partner-logo-lex img {
  max-width: none;
  max-height: none;
  width: 48px;
  height: 48px;
}
/* ლოგოები ჩამქრალია; კურსორის მიტანისას ფერი ბრუნდება */
.partner-logo {
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.2s, opacity 0.2s, border-color 0.15s, box-shadow 0.15s;
}
.partner:hover .partner-logo,
.partner:focus-visible .partner-logo {
  filter: none;
  opacity: 1;
}
@media (max-width: 860px) {
  .footer-partners {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .partner {
    padding: 0;
    border-left: 0;
  }
}
.footer-copy p {
  margin: 0;
}
.footer-credit {
  margin-top: 4px !important;
  color: var(--text-muted);
}
/* ---- მობილური (≤720px) ---- */
.drawer-lang {
  display: none;
}
.search-input {
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .header-actions .lang-switch {
    display: none;
  }
  .drawer-lang {
    display: inline-flex;
    align-self: flex-start;
    margin: 6px 0 4px;
  }
  .drawer-lang .lang-btn {
    padding: 7px 14px;
    font-size: 13.5px;
  }
  .brand-name .bn-s {
    font-size: 10px;
  }
  .brand-name .bn-m {
    font-size: 14px;
  }
  .search-band,
  .search-band.compact {
    padding: 16px 0 12px;
  }
  .search-controls-row {
    margin-bottom: 10px;
  }
  .alphabet-bar {
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: 2px;
    margin-top: 12px;
    padding-top: 10px;
  }
  .alpha-btn {
    width: auto;
    height: 30px;
  }
  .main-area {
    padding-top: 16px;
  }
  .entry-actions {
    flex-wrap: wrap;
  }
  #printEntryBtn {
    display: none;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .ad-rot {
    width: 100%;
  }
  .ad-bottom .ad-box {
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: 84px;
    margin: 0 auto;
    padding: 12px 12px 12px 10px;
    box-sizing: border-box;
  }
  .ad-bottom .adb-desc {
    display: none;
  }
  .ad-bottom .adc-kicker {
    font-size: 9.5px;
    letter-spacing: 0.02em;
    line-height: 1.25;
  }
  .ad-bottom .adb-title,
  .ad-vet .adb-title {
    font-size: 15.5px;
  }
  .ad-side {
    margin-bottom: 4px;
  }
  .ad-bottom {
    margin-top: 20px;
    margin-bottom: 26px;
  }
}
.ad-rot > .ad-box {
  display: none;
}
.ad-rot > .ad-box.on {
  display: flex;
  animation: adFade 0.5s ease;
}
.ad-pod {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border: 0;
  overflow: hidden;
  background: #17151B;
  color: #FFFFFF;
  font-family: 'Noto Sans Georgian', var(--font-sans);
  text-decoration: none;
}
.adp-thumb {
  position: relative;
  display: block;
  height: 164px;
  flex: none;
}
.adp-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adp-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(230, 33, 23, 0.94);
  color: #FFFFFF;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s;
}
.ad-pod:hover .adp-play {
  transform: scale(1.1);
}
.adp-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 0;
}
.adp-kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #F0A7C8;
}
.adp-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}
@media print {
  .ad-slot {
    display: none;
  }
}
.search-controls-row {
  order: -1;
  margin: 0 0 12px;
}
.brand-sub {
  display: none;
}
@media (max-width: 720px) {
  .brand-name .bn-s {
    font-size: 9.5px;
  }
  .brand-name .bn-m {
    font-size: 12.5px;
  }
}


/* ---- საიტი (tools/build_layout.py): ბორდოსფერი ზოლი ყველა გვერდზე ერთი სიმაღლისაა ---- */
@media (min-width: 721px) {
  .search-band {
    padding: 20px 0 14px;
  }
}

/* ---- მეთაური სიტყვა და ტრანსკრიფცია: Noto Sans (არჩეულია 2026-11-28) ---- */
.entry-headword,
.wotd-word,
.mini-entry-word,
.result-word,
.ipa-text {
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
}

/* ---- ასოს გვერდის თავი: დიდი ასო და გვერდის პირველი–ბოლო სიტყვა ---- */
.letter-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.letter-tile {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-700);
  color: #fff;
  font-family: 'Noto Sans', sans-serif;
  font-size: 30px;
  font-weight: 700;
}
.letter-range {
  margin: 0;
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 19px;
  font-weight: 700;
}
.letter-range span {
  margin: 0 8px;
  color: var(--text-muted);
  font-weight: 400;
}
.letter-page {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- მობილური: შიდა გვერდებზე „სცადეთ“ ღილაკები იმალება (შინაარსი მაღლა ადის), გვერდითა ბანერი შუაშია ---- */
@media (max-width: 720px) {
  .search-band.is-inner .quick-chips {
    display: none;
  }
}
.ad-side .ad-rot > .ad-box {
  margin-left: auto;
  margin-right: auto;
}

/* ---- დიდი სტატიის განყოფილება (I, II, ა, ბ) მნიშვნელობებს შორის ---- */
.sense-sec {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
}
.sense-sec:first-child {
  margin-top: 0;
}
.sense-sec > span {
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-700);
}

/* ---- ძებნიდან მოსული შესიტყვება (ფრაზული ზმნა, იდიომი): სტატიაში მონიშნულია, სიაში ფრაზა ჩანს ---- */
.idiom-card {
  scroll-margin-top: 110px;
}
.idiom-card.is-target {
  border-color: #E9C24A;
  background: var(--mark-bg);
  box-shadow: 0 0 0 3px rgba(233, 194, 74, 0.35);
  animation: phPulse 1.6s ease 1;
}
[data-theme="dark"] .idiom-card.is-target {
  background: rgba(250, 204, 21, 0.14);
}
@keyframes phPulse {
  0% { box-shadow: 0 0 0 10px rgba(233, 194, 74, 0.55); }
  100% { box-shadow: 0 0 0 3px rgba(233, 194, 74, 0.35); }
}
.ph-hit {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-primary);
}

/* ---- რედაქტორის სვეტი ---- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-card {
  display: block;
  padding: 20px 24px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.post-card:hover {
  border-color: var(--brand-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.post-date {
  font-size: 13px;
  color: var(--text-muted);
}
.post-title {
  margin: 4px 0 8px;
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--brand-700);
}
.post-card p {
  margin: 0;
  color: var(--text-secondary);
}
.post-full .post-title {
  font-size: 30px;
  color: var(--text-primary);
  margin: 6px 0 22px;
}
.post-body {
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.post-body p {
  margin: 0 0 16px;
}
.post-body h2 {
  margin: 30px 0 10px;
  font-size: 23px;
  line-height: 1.3;
}
.post-body h3 {
  margin: 24px 0 8px;
  font-size: 19px;
}
.post-body a {
  color: var(--brand-700);
}
.post-body blockquote {
  margin: 18px 0;
  padding: 6px 20px;
  border-left: 3px solid var(--brand-700);
  color: var(--text-secondary);
  font-style: italic;
}
.post-body ul,
.post-body ol {
  margin: 0 0 16px;
  padding-left: 26px;
}
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px auto;
  border-radius: var(--radius-md);
}
.post-body iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  background: #000;
}
.post-body table {
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
}
.post-body td,
.post-body th {
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  vertical-align: top;
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 24px 0;
}
.post-body a[href^="/v2/uploads/"] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  font-size: 15px;
  text-decoration: none;
}
.post-body a[href^="/v2/uploads/"]::before {
  font-family: 'tabler-icons';
  content: '\eb02';
}

/* ---- პაგინაცია სიის თავში ---- */
.pager-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pager-top .pager-btn {
  padding: 6px 12px;
  font-size: 13.5px;
}
.pager-top .pager-btn.is-off {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.pager-top-num {
  font-size: 13.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .letter-head {
    flex-wrap: wrap;
  }
  .pager-top {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

/* ---- სიის ბარათი: ჩანს, რომ ეს ნაწყვეტია და სტატიაზე გადადის ---- */
.result-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.result-main {
  flex: 1;
  min-width: 0;
}
.result-go {
  flex: none;
  font-size: 20px;
  color: var(--border-strong);
  transition: color 0.15s, transform 0.15s;
}
.result-card:hover .result-go {
  color: var(--brand-700);
  transform: translateX(3px);
}
.result-more {
  margin-left: 4px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-700);
}
.result-more::after {
  content: ' →';
}

/* ---- ბმული სხვა სტატიაზე: ირგვლივ ტექსტის ზომისა (პროტოტიპში 13px იყო) ---- */
.xref-link {
  font-size: inherit;
  padding: 0 7px;
}

/* ---- „ლექსიკონის შესახებ“ (app/texts/about.<ენა>.html) ---- */
.about-page {
  overflow: hidden;
}
.about-hero {
  padding: 34px 36px 30px;
  background: linear-gradient(160deg, var(--brand-50), var(--bg-surface) 70%);
  border-bottom: 1px solid var(--border-light);
}
.about-title {
  margin: 10px 0 14px;
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
}
.about-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.about-lead strong {
  color: var(--text-primary);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0 0;
}
.about-stats > div {
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.about-stats dt {
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--brand-700);
  white-space: nowrap;
}
.about-stats dt small {
  font-size: 13px;
  font-weight: 600;
}
.about-stats dd {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}
.about-body {
  padding: 6px 36px 34px;
}
.about-body h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 21px;
}
.about-body h2 i {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 19px;
}
.about-timeline {
  list-style: none;
  margin: 0 0 8px !important;
  padding: 0 !important;
}
.about-timeline li {
  position: relative;
  padding: 0 0 18px 28px;
}
.about-timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--brand-700);
  box-sizing: border-box;
}
.about-timeline li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -3px;
  width: 1px;
  background: var(--border-strong);
}
.about-timeline li:last-child {
  padding-bottom: 0;
}
.about-timeline li:last-child::after {
  display: none;
}
.about-when {
  display: block;
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-700);
}
.about-timeline p {
  margin: 2px 0 0;
}
.about-body .about-quote {
  margin: 4px 0 18px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brand-700);
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 600;
}
.about-body .about-note {
  display: flex;
  gap: 14px;
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  background: var(--brand-50);
  font-size: 16px;
  line-height: 1.65;
}
.about-note i {
  flex: none;
  margin-top: 2px;
  font-size: 22px;
  color: var(--brand-700);
}
.about-board {
  padding: 4px 6px;
}
.about-board ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-board li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 600;
}
.about-board li small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--brand-700);
}
.about-dag {
  position: absolute;
  left: 0;
  font-weight: 400;
  color: var(--text-muted);
}
.about-board h4 {
  margin: 12px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .about-hero {
    padding: 24px 18px 22px;
  }
  .about-title {
    font-size: 27px;
  }
  .about-lead {
    font-size: 17px;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-body {
    padding: 2px 18px 24px;
  }
  .about-body .about-quote {
    font-size: 19px;
  }
}

/* ---- ინსტრუქცია (/guide/): ჩარჩო „ლექსიკონის შესახებ“ გვერდისაა (.about-*), ტექსტს tools/build_guide.py აწყობს ---- */
.guide-body h2,
.guide-body h3,
.guide-body h4,
.guide-body p[id] {
  scroll-margin-top: 84px;
}
.guide-body h2 {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  font-size: 23px;
}
.guide-body h2:first-of-type {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}
.guide-body h3 {
  margin: 34px 0 12px;
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 20px;
  line-height: 1.35;
}
.guide-body h4 {
  margin: 26px 0 10px;
  font-family: 'Noto Sans', 'Noto Sans Georgian', sans-serif;
  font-size: 17px;
  line-height: 1.4;
}
.guide-body p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
}
.guide-body .guide-intro {
  font-size: 17px;
  color: var(--text-secondary);
}
.guide-num {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  color: var(--brand-700);
}
.guide-ipa {
  font-family: 'Noto Sans', sans-serif;
}
.guide-ex {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 3px solid var(--brand-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-subtle);
}
.guide-body .guide-ex p {
  margin: 0;
  padding: 3px 0;
  font-size: 15.5px;
  line-height: 1.6;
}
.guide-body .guide-list {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 16px;
}
.guide-table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}
.guide-body .guide-table {
  margin: 0;
  font-size: 15.5px;
}
.guide-body .guide-table td {
  border: 1px solid var(--border-light);
  padding: 6px 14px;
}
.guide-symbols {
  margin: 0 0 16px;
}
.guide-symbols > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.guide-symbols > div:last-child {
  border-bottom: 0;
}
.guide-symbols dt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 19px;
  font-weight: 700;
}
.guide-symbols dd {
  margin: 0;
  padding-top: 4px;
  font-size: 16px;
  line-height: 1.6;
}
.guide-how {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.guide-how > div {
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.guide-how i {
  font-size: 22px;
  color: var(--brand-700);
}
.guide-body .guide-how h4 {
  margin: 6px 0 6px;
  font-size: 16px;
}
.guide-body .guide-how p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.guide-abbr {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.45;
}
.guide-abbr > div {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 14px;
  padding: 7px 14px;
}
.guide-abbr > div:nth-child(even) {
  background: var(--bg-subtle);
}
.guide-abbr strong {
  color: var(--accent-green);
}
.guide-abbr span:last-child {
  color: var(--text-secondary);
}
.guide-toc {
  display: flex;
  flex-direction: column;
}
.guide-toc a {
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-secondary);
  text-decoration: none;
}
.guide-toc a:hover {
  background: var(--bg-hover);
  color: var(--brand-700);
}
.guide-toc a.is-part {
  margin-top: 6px;
  font-weight: 700;
  color: var(--text-primary);
}
.guide-toc a.is-part:first-child {
  margin-top: 0;
}
.sidebar-col:has(.guide-toc-side) {
  align-self: stretch;
}
.guide-toc-side {
  position: sticky;
  top: 84px;
}
.guide-toc-inline {
  display: none;
  margin: 18px 0 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.guide-toc-inline summary {
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}
.guide-toc-inline .guide-toc {
  padding: 0 8px 10px;
}
@media (max-width: 960px) {
  .guide-toc-inline {
    display: block;
  }
  .guide-toc-side {
    display: none;
  }
}
@media (max-width: 720px) {
  .guide-how {
    grid-template-columns: 1fr;
  }
  .guide-abbr > div {
    grid-template-columns: 96px 1fr;
    gap: 2px 12px;
  }
  .guide-abbr span:last-child {
    grid-column: 2;
  }
}

/* ---- კონტაქტი (/contact/): ფორმა ---- */
.contact-title {
  margin: 4px 0 8px;
  font-size: 26px;
  font-weight: 700;
}
.contact-lead {
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.contact-form .form-field input,
.contact-form .form-field textarea {
  font-size: 15px;
  background: var(--bg-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form .form-field textarea {
  display: block;
  min-height: 170px;
  line-height: 1.6;
  resize: vertical;
}
.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
  outline: none;
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-700) 18%, transparent);
}
.contact-form .has-error input,
.contact-form .has-error textarea {
  border-color: #B42318;
}
.field-error {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #B42318;
}
[data-theme="dark"] .field-error {
  color: #F97066;
}
[data-theme="dark"] .contact-form .has-error input,
[data-theme="dark"] .contact-form .has-error textarea {
  border-color: #F97066;
}
.field-opt {
  font-weight: 400;
  color: var(--text-muted);
}
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 4px;
}
.contact-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
.contact-hint {
  font-size: 13px;
  color: var(--text-muted);
}
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, #B42318 35%, transparent);
  background: color-mix(in srgb, #B42318 7%, var(--bg-surface));
  font-size: 14px;
}
.contact-alert i {
  margin-top: 2px;
  font-size: 18px;
  color: #B42318;
}
[data-theme="dark"] .contact-alert i {
  color: #F97066;
}
.contact-done {
  padding: 40px 28px;
  text-align: center;
}
.contact-done > i {
  font-size: 44px;
  color: var(--accent-green);
}
.contact-done h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}
.contact-done p {
  margin: 0 auto 18px;
  max-width: 52ch;
  color: var(--text-secondary);
  line-height: 1.65;
}
.contact-side {
  margin: 4px 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.contact-side a {
  color: var(--brand-700);
  font-weight: 600;
}
@media (max-width: 720px) {
  .contact-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-title {
    font-size: 22px;
  }
}

/* ---- „სხვა ლექსიკონებშიც“ სიტყვის გვერდზე (lib/xdict.php, 2026-11-29) ---- */
.xdict {
  margin-top: 16px;
}
.xdict-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.xdict-title i {
  font-size: 18px;
  color: var(--brand-700);
}
.xdict-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xdict-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
}
.xdict-body {
  min-width: 0;
  flex: 1;
}
.xdict-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}
.xdict-name i {
  font-size: 14px;
  opacity: 0.6;
}
.xdict-name:hover {
  color: var(--brand-700);
  text-decoration: none;
}
.xdict-items {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14.5px;
  line-height: 1.5;
}
.xdict-items a {
  font-weight: 600;
  color: var(--brand-700);
}
.xdict-gloss {
  color: var(--text-secondary);
}
.xdict-more a {
  font-size: 13px;
  font-weight: 600;
}

/* ---- ფუტერი (2026-11-29, „გ“ ვარიანტი): სამი სვეტი, ფერადი ზედა ხაზი; front.php footer_html() ---- */
.site-footer.sf {
  background: var(--bg-subtle);
  border-top: 3px solid var(--brand-700);
  padding: 34px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.sf-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 34px;
}
.sf h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.sf ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.sf a {
  color: var(--text-secondary);
  text-decoration: none;
}
.sf a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}
.sf-about p {
  margin: 0 0 14px;
  line-height: 1.6;
  max-width: 460px;
}
.sf-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sf .sf-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sf .sf-partner:hover {
  border-color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}
.sf-partner img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.sf-bottom {
  margin-top: 28px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--border-strong);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 24px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.sf-bottom p {
  margin: 0;
  line-height: 1.55;
}
.sf-rights {
  max-width: 760px;
}
.sf-meta {
  white-space: nowrap;
}
.sf-bottom a {
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .sf-grid {
    grid-template-columns: 1fr;
  }
  .sf-bottom {
    flex-direction: column;
  }
  .sf-meta {
    white-space: normal;
  }
}
@media (max-width: 520px) {
  .sf-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---- ჰედერი საშუალო სიგანეზე (721–1100px): მენიუ ლოგოს წარწერას ედებოდა → მენიუ ღილაკში (2026-11-29) ---- */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .brand {
    min-width: 0;
  }
}

/* ფუტერი: „საიტის“ ბმულები ორ სვეტად, მიმდევრობა ზემოდან ქვემოთ, მერე მეორე სვეტი (2026-11-29) */
.sf nav ul {
  display: block;
  columns: 2;
  column-gap: 36px;
  width: max-content;
}
.sf nav li {
  break-inside: avoid;
  margin-bottom: 7px;
}
@media (max-width: 420px) {
  .sf nav ul {
    columns: 1;
  }
}

/* ---- მისაწვდომობა (2026-11-29): კლავიატურის ფოკუსი და შემცირებული მოძრაობა ---- */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-700, #7A004B);
  outline-offset: 2px;
  border-radius: 4px;
}
[data-theme="dark"] a:focus-visible, [data-theme="dark"] button:focus-visible, [data-theme="dark"] summary:focus-visible,
[data-theme="dark"] [tabindex]:focus-visible, [data-theme="dark"] input:focus-visible, [data-theme="dark"] textarea:focus-visible {
  outline-color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}