/* Language menu (TR · EN · DE · NL · RU · 中文) and CJK glyphs for the theme fonts — owner, 23 Nov 2026. */

/* Geist and RobotoSlab have no Chinese glyphs: lend them the system's Chinese faces for that range only,
   so Latin text keeps the brand font and Chinese text gets a proper sans instead of a random fallback. */
@font-face { font-family: Geist; font-weight: 100 500; font-display: swap; unicode-range: U+2E80-2FDF, U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
  src: local("PingFang SC Regular"), local("PingFangSC-Regular"), local("Microsoft YaHei"), local("Noto Sans SC"), local("Noto Sans CJK SC"), local("Source Han Sans SC"), local("Hiragino Sans GB"); }
@font-face { font-family: Geist; font-weight: 600 900; font-display: swap; unicode-range: U+2E80-2FDF, U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
  src: local("PingFang SC Semibold"), local("PingFangSC-Semibold"), local("Microsoft YaHei Bold"), local("Noto Sans SC Bold"), local("Noto Sans CJK SC Bold"), local("Source Han Sans SC Bold"), local("Hiragino Sans GB W6"); }
@font-face { font-family: RobotoSlab; font-weight: 300; font-display: swap; unicode-range: U+2E80-2FDF, U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
  src: local("PingFang SC Light"), local("PingFangSC-Light"), local("Microsoft YaHei Light"), local("Noto Sans SC Light"), local("Noto Sans CJK SC Light"), local("PingFang SC Regular"), local("Microsoft YaHei"); }
:lang(zh) { line-break: strict; word-break: normal; }
:lang(zh) .gd-prose { letter-spacing: .01em; }

/* the menu */
.gd-lang { position: relative; display: inline-block; }
.gd-lang > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45em; user-select: none; }
.gd-lang > summary::-webkit-details-marker { display: none; }
.gd-lang > summary::marker { content: ""; }
.gd-lang > summary::after { content: ""; width: .42em; height: .42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-.12em) rotate(45deg); transition: transform .2s ease; }
.gd-lang[open] > summary::after { transform: translateY(.1em) rotate(-135deg); }
.gd-lang--up[open] > summary::after { transform: translateY(-.12em) rotate(45deg); }
.gd-lang--up > summary::after { transform: translateY(.1em) rotate(-135deg); }
.gd-lang__list { position: absolute; z-index: 1000; min-width: 11.5rem; margin: 0; padding: .4rem; list-style: none; text-transform: none; letter-spacing: 0;
  background: #fff; color: #0f2217; border: 1px solid rgba(15, 34, 23, .12); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(15, 34, 23, .28);
  font: 400 15px/1.2 Geist, Helvetica, "Helvetica Neue", sans-serif; }
.gd-lang--down .gd-lang__list { top: calc(100% + .6rem); right: 0; }
.gd-lang--up .gd-lang__list { bottom: calc(100% + .6rem); left: 0; }
.gd-lang__list li { margin: 0; padding: 0; list-style: none; }
.gd-lang__list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .62rem .75rem; border-radius: 8px;
  color: inherit !important; text-decoration: none !important; white-space: nowrap; }
.gd-lang__list a:hover, .gd-lang__list a:focus-visible { background: #e8f5ec; outline: none; }
.gd-lang__list a[aria-current="true"] { font-weight: 600; }
.gd-lang__list a[aria-current="true"]::after { content: ""; width: .32rem; height: .62rem; border-right: 2px solid #1e7a34; border-bottom: 2px solid #1e7a34; transform: rotate(45deg) translate(-2px, -2px); }
.gd-lang__code { font-size: .72rem; letter-spacing: .06em; color: #6b8174; font-weight: 500; }
@media (max-width: 600px) { .gd-lang--down .gd-lang__list { right: -1rem; } }

/* translated legal pages: a line pointing to the binding Turkish text */
.gd-legal-note { margin: 0 0 1.6rem; padding: .8rem 1rem; border-left: 3px solid #1e7a34; background: #f1f8f3; border-radius: 0 8px 8px 0; font-size: .92rem; line-height: 1.5; color: #35503f; }
.gd-legal-note a { color: #1e7a34; font-weight: 600; }

/* the theme's header is pointer-events:none except links and buttons; the menu's summary needs it back */
.gd-lang, .gd-lang > summary, .gd-lang__list { pointer-events: auto; }
/* the theme paints header text white over the hero video; the open list keeps its own dark text */
.gd-lang__list a, .gd-lang__list a span { color: #0f2217 !important; mix-blend-mode: normal; }
.gd-lang__list .gd-lang__code { color: #6b8174 !important; }
