/* kisu-lang.css — the language picker, and making Ge'ez script legible.
 *
 * Tigrinya is written in Ge'ez. It is taller and more detailed than Latin
 * letters, so at the sizes that suit English it turns to mush on a phone. The
 * `.kl-geez` rules give it a little more room and a little more line height —
 * nothing else on the page changes.
 *
 * The font is asked for by name first, so a phone that already carries
 * Noto Sans Ethiopic (most Android and iOS phones do) uses its own copy and
 * never waits on the network. The web font is a fallback for the ones that
 * don't, not a requirement.
 */

/* ------------------------------------------------------------------ *
 * The picker
 * ------------------------------------------------------------------ */

#store .kl-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

#store .kl-pick .kl-pick-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  opacity: .6;
  pointer-events: none;
  color: inherit;
}

#store .kl-pick select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 12px 8px 28px;
  border-radius: 999px;
  border: 1px solid var(--kg-edge, rgba(38, 36, 33, .10));
  background: var(--kg-veil, rgba(38, 36, 33, .05));
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  max-width: 140px;
}

#store .kl-pick select:focus-visible {
  outline: 2px solid var(--kg-pink, #393632);
  outline-offset: 2px;
}

/* the operating system draws these, and it does not inherit the glass — so
   they are told their colours outright */
#store .kl-pick select option {
  background: #1a1a1d;
  color: #f4f4f3;
}

/* The header is laid out `nowrap` at these widths, so anything that does not
   fit does not drop to a second line — it hangs past the edge of the window
   and drags a horizontal scrollbar with it. In a longer language the
   navigation words alone can do that, picker or no picker. Letting the row
   wrap costs nothing when everything fits (flex only wraps on overflow) and
   turns a spill into a second line when it doesn't. */
@media (max-width: 1180px) {
  #store .nav { flex-wrap: wrap; }
}

@media (min-width: 761px) and (max-width: 1180px) {
  #store .kl-pick { flex: 0 1 auto; min-width: 0; }
  #store .kl-pick select { min-width: 0; }
  #store .kl-pick select {
    max-width: 96px;
    padding: 8px 8px 8px 24px;
    font-size: 12px;
  }
  #store .kl-pick .kl-pick-icon { left: 8px; font-size: 11px; }
}

/* On a phone the top row is already full — logo, currency, basket, sign in.
   Adding the picker there pushed "Sign in" onto a line of its own and made the
   header 52px taller, which is a real cost for a control most people touch
   once. So on narrow screens the picker joins the search field's row instead:
   `order` puts it there without moving anything in the document, and the
   search field gives up the width. */
@media (max-width: 760px) {
  #store .kl-pick {
    order: 4;
    flex: 0 0 auto;
  }
  #store .kd-search {
    flex: 1 1 180px;
    flex-basis: 180px;
    min-width: 0;
  }
  #store .kl-pick select {
    max-width: 118px;
    padding: 7px 10px 7px 24px;
    font-size: 12px;
    height: 44px;   /* the same height as the search field beside it */
  }
  #store .kl-pick .kl-pick-icon { left: 8px; font-size: 11px; }
}

/* ------------------------------------------------------------------ *
 * The honesty notice
 * ------------------------------------------------------------------ */

#store .kl-notice {
  margin: 0;
  padding: 9px 18px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--kg-ink-2, #51504e);
  background: var(--kg-bar, rgba(255, 255, 255, .78));
  border-bottom: 1px solid var(--kg-edge, rgba(38, 36, 33, .10));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #store .kl-notice { background: #1a1a1d; }
}

#store .kl-notice[hidden] { display: none; }

@media (max-width: 760px) {
  #store .kl-notice { font-size: 12px; padding: 8px 14px; }
}

/* ------------------------------------------------------------------ *
 * Ge'ez
 * ------------------------------------------------------------------ */

html.kl-geez #store {
  font-family: 'Noto Sans Ethiopic', 'Abyssinica SIL', 'Nyala', 'Ethiopia Jiret',
               system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Ge'ez characters are dense; the tight display line-height that flatters a
   Latin headline clips their ascenders. */
html.kl-geez #store h1,
html.kl-geez #store h2,
html.kl-geez #store h3,
html.kl-geez #store .heroText h1 {
  line-height: 1.32;
  letter-spacing: 0;
}

html.kl-geez #store p,
html.kl-geez #store .muted,
html.kl-geez #store .note,
html.kl-geez #store li {
  line-height: 1.75;
}

/* Buttons written in Ge'ez need a touch more height, or the script sits on the
   border. Uppercase does nothing in Ge'ez, so it is switched off rather than
   left to do nothing while stretching the label. */
html.kl-geez #store button,
html.kl-geez #store .primary,
html.kl-geez #store .navbtn {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}

html.kl-geez #store .mobileDock button {
  font-size: 11px;
  line-height: 1.45;
}

/* the moving band's labels are small by design; in Ge'ez, small is too small */
html.kl-geez #store .kg-parade-name { font-size: 13px; line-height: 1.5; }
html.kl-geez #store .cat { line-height: 1.6; }
