/* GEO landings + sticky language CTA. Desk palettes stay in theme-*.css. */

.lang-dd {
  position: relative;
  z-index: 50;
}
.lang-dd__btn {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 7.5em;
  padding: 6px 28px 6px 10px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: color-mix(in srgb, var(--bg, #fff) 82%, transparent);
  color: inherit;
  line-height: 1.2;
  position: relative;
}
.lang-dd__btn::-webkit-details-marker { display: none; }
.lang-dd__btn::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.lang-dd[open] .lang-dd__btn::after {
  transform: translateY(-20%) rotate(225deg);
}
.lang-dd__kicker {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
}
.lang-dd__now {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.lang-dd__list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 100%;
  background: #fff;
  color: #161616;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  border: 1px solid rgba(0,0,0,.08);
}
.lang-dd__list a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.lang-dd__list a:hover,
.lang-dd__list a:focus-visible {
  background: #f3efe8;
}
.lang-dd__list a[aria-current="true"] {
  font-weight: 700;
}
.theme-sex .lang-dd__list a:hover,
.theme-sex .lang-dd__list a:focus-visible { background: #f6efe7; }

.geo-brand {
  margin: 6px 0 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .82;
}
.geo-file {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter) var(--section-y);
}
.geo-block {
  padding: 28px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.geo-block:first-child { border-top: 0; }
.geo-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  margin: 0 0 12px;
  max-width: 22em;
  line-height: 1.28;
}
.geo-block p {
  margin: 0 0 10px;
  max-width: 62ch;
  line-height: 1.7;
}
.geo-block p:last-child { margin-bottom: 0; }

.theme-crime .geo-block { border-color: rgba(139,105,20,.28); }
.theme-crime .geo-block h2 { max-width: 18em; }
.theme-dui .geo-file { background: linear-gradient(90deg, transparent 0, rgba(181,106,0,.05) 0); }
.theme-dui .geo-block { border-top-style: dashed; border-color: rgba(181,106,0,.4); }
.theme-drug .geo-block {
  background: #fff;
  border: 1px solid rgba(13,122,107,.22);
  border-top: 1px solid rgba(13,122,107,.22);
  padding: 22px 20px;
  margin-bottom: 12px;
}
.theme-sex .geo-file { background: #f6efe7; padding-top: 28px; padding-bottom: 36px; }
.theme-sex .geo-block { border-color: rgba(122,59,59,.2); }

.geo-nap {
  max-width: var(--max);
  margin: 0 auto 8px;
  padding: 18px var(--gutter) 8px;
  font-size: 14px;
  line-height: 1.55;
}
.geo-nap p { margin: 0 0 4px; max-width: 52ch; }
.geo-nap__firm { font-weight: 600; letter-spacing: .04em; }
.geo-related {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter) 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.geo-related a {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.geo-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(12,12,12,.94);
  color: #f6f3ee;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 6px;
}
.geo-cta__note {
  margin: 0;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .72;
  text-align: center;
  line-height: 1.3;
}
.geo-cta__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
}
.geo-cta--n3 .geo-cta__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.geo-cta--n1 .geo-cta__row { grid-template-columns: 1fr; }
.geo-cta--n4 .geo-cta__row,
.geo-cta--n5 .geo-cta__row,
.geo-cta--n6 .geo-cta__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.geo-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #111;
  background: #e8e0d4;
  box-sizing: border-box;
}
.geo-cta__btn small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  opacity: .85;
}
.geo-cta__call { background: var(--accent, #c4a574); }
.geo-cta__wa { background: #25D366; color: #fff; }
.geo-cta__sms { background: #dbe7ff; }
.geo-cta__wechat { background: #07C160; color: #fff; }
.geo-cta__line { background: #06C755; color: #fff; }
.geo-cta__kakao { background: #FEE500; color: #191919; }
.geo-cta__telegram { background: #229ED9; color: #fff; }
.theme-sex .geo-cta__call { background: #7a3b3b; color: #f6efe7; }
.msg-dock { display: none; }
body { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
body:has(.geo-cta--n4),
body:has(.geo-cta--n5),
body:has(.geo-cta--n6) {
  padding-bottom: calc(164px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 901px) {
  .geo-cta { padding-left: var(--gutter); padding-right: var(--gutter); }
  .geo-cta__row { max-width: var(--max); margin: 0 auto; }
}

@media (max-width: 900px) {
  .lang-dd__kicker { display: none; }
  .lang-dd__btn { min-width: 0; padding: 8px 26px 8px 10px; }
  .geo-hero { min-height: 68vh; }
}
