/* The weds editions' language switch (lang.js): the toggle at the top, and the page in Hindi (html.lang-hi). */

/* Devanagari in the page's own font families. These faces cover only Devanagari (and the rupee sign), so the Latin
   text keeps its fonts and the Hindi gets matching ones: Tiro for the serif and the body text, Noto Sans Devanagari
   for the bold sans, Kalam for the script names. All three already ship with style.css. */
@font-face { font-family: "Jost"; src: url("shared/fonts/tiro-hindi.woff2") format("woff2"); font-weight: 300 500; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: "Jost"; src: url("shared/fonts/noto-sans-deva-full-600.woff2") format("woff2"); font-weight: 600 800; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: "Corm"; src: url("shared/fonts/tiro-hindi.woff2") format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: "Corm"; src: url("shared/fonts/tiro-hindi.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: "Parisienne"; src: url("shared/fonts/kalam-400.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC, U+A8E0-A8FF; }

/* the toggle: top left, over the doors too, so guests can choose before opening the invitation */
.lang-switch { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; z-index: 75; display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; background: rgba(36, 12, 10, .8); box-shadow: 0 4px 14px rgba(20, 6, 8, .32), inset 0 0 0 1px rgba(235, 203, 124, .7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lang-switch button { min-width: 66px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #FBE9CF;
  font: 600 13.5px/1 "Jost", sans-serif; letter-spacing: .02em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, color .25s; }
.lang-switch button[lang="hi"] { font: 600 15px/1 "Deva", "Tiro", sans-serif; letter-spacing: 0; }
.lang-switch button[aria-pressed="true"] { background: var(--gold-2, #EBCB7C); color: var(--maroon, #6B1730);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.lang-switch button:focus-visible { outline: 2px solid var(--gold-2, #EBCB7C); outline-offset: 2px; }
/* the family's news strip on the day sits at the top: its words start below the toggle */
.today { padding-top: calc(56px + env(safe-area-inset-top, 0px)); }

/* ---------- the page in Hindi ---------- */
/* where the page already shows Hindi beside the English, the English is now Hindi too: show it once */
html.lang-hi .countdown span > i[lang="hi"],
html.lang-hi .sign b,
html.lang-hi .announce p:not([lang]),
html.lang-hi .p-hindi { display: none; }
/* the celebrations' times are longer in Hindi ("शाम 5:00 बजे"): their column fits them */
html.lang-hi .steps li { grid-template-columns: 30px max-content 1fr; }
html.lang-hi .steps b { font-size: 18px; }
/* letter-spacing pulls apart the line that joins Devanagari letters */
html.lang-hi body :is(h1, h2, h3, h4, p, li, b, i, em, small, span, a, button, label, figcaption, summary, strong, input, textarea) {
  letter-spacing: normal !important; }
