  body {
    min-height: 100dvh;
    font-family: "Noto Sans Gujarati", "Noto Sans Devanagari", "Nirmala UI",
                 "Segoe UI", system-ui, ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  }
  h3.sec, .box .k, .box .v, .brand b, .brand small, .pr-label, .pr-name, .lang, .search input, .search button {
    font-family: inherit;
  }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 22px 18px 46px; }

  .pagetop {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    padding: 0 0 16px; margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; gap: 11px; }
  .brand-dot { width: 11px; height: 11px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: 0 0 auto; }
  .brand b { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #12211c; }
  .brand small { display: block; font-size: 10px; letter-spacing: .1em; color: var(--muted); margin-top: 2px; }

  .topright { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

  /* search */
  .search {
    display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap;
  }
  .search input {
    flex: 1 1 240px; min-width: 0;
    font: inherit; font-size: 14px;
    padding: 12px 14px; border: 1px solid #d3d9e0; border-radius: 10px;
    background: #fbfcfd; color: #141a20;
  }
  .search input:focus { outline: 2px solid rgba(22,88,63,.35); border-color: #16583f; background: #fff; }
  .search button {
    font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
    background: #16583f; color: #fff;
  }
  .search button:hover { background: #11452f; }
  .quick { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 18px; }
  .quick button {
    font: inherit; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
    padding: 7px 12px; border-radius: 999px; cursor: pointer;
    background: #fff; color: #16583f; border: 1px solid rgba(22,88,63,.3);
  }
  .quick button:hover { background: #f2f6f4; }

  .findbox { position: relative; margin: 0 0 10px; }
  .findbox input {
    width: 100%; font: inherit; font-size: 14px; padding: 12px 14px;
    border: 1px solid #d3d9e0; border-radius: 10px; background: #fbfcfd; color: #141a20;
  }
  .findbox input:focus { outline: 2px solid rgba(22,88,63,.35); border-color: #16583f; background: #fff; }
  .sugg {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
    background: #fff; border: 1px solid #d3d9e0; border-radius: 10px;
    box-shadow: 0 18px 40px -22px rgba(20,28,36,.55);
    max-height: 320px; overflow-y: auto; display: none;
  }
  .sugg.on { display: block; }
  .sugg button {
    display: block; width: 100%; text-align: left; font: inherit; font-size: 12.5px;
    padding: 10px 13px; border: 0; border-bottom: 1px solid #eef1f4;
    background: transparent; color: #141a20; cursor: pointer;
  }
  .sugg button:last-child { border-bottom: 0; }
  .sugg button:hover, .sugg button.hi { background: #f2f6f4; }
  .sugg b { color: #16583f; }
  .sugg small { display: block; color: #7b8590; font-size: 11px; margin-top: 2px; }
  .sugg .empty { padding: 10px 13px; font-size: 12px; color: #7b8590; }

  .ghostbtn {
    font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    padding: 12px 18px; border-radius: 999px; cursor: pointer;
    background: #fff; color: #16583f; border: 1px solid rgba(22,88,63,.35); white-space: nowrap;
  }
  .ghostbtn:hover { background: #f2f6f4; }

  .myList { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
  .myList .chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    padding: 7px 12px; border-radius: 999px;
    background: #fff; border: 1px solid #d3d9e0; color: #12211c; cursor: pointer;
  }
  .myList .chip:hover { border-color: #16583f; background: #f2f6f4; }
  .myList .chip.on { background: #16583f; color: #fff; border-color: #16583f; }
  .myList .chip .x { font-size: 13px; opacity: .6; margin-left: 2px; }
  .myList .chip .x:hover { opacity: 1; }

  .msg { min-height: 20px; font-size: 12.5px; color: #b3261e; font-weight: 700; margin: 0 0 10px; }

  /* quote head */
  .qhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
  .qname { font-size: 15px; font-weight: 700; color: #12211c; }
  .qsym { font-size: 10.5px; letter-spacing: .1em; color: var(--muted); margin-top: 3px; }
  .qprice { text-align: right; }
  .qprice .p { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 30px; color: #12211c; line-height: 1; }
  .qprice .c { font-size: 12.5px; font-weight: 700; margin-top: 5px; }
  .up { color: #16583f; } .down { color: #b3261e; }

  /* chart */
  .chartbox { position: relative; width: 100%; height: 340px; margin: 14px 0 6px;
    background: #fbfcfd; border: 1px solid #e3e8ee; border-radius: 12px; overflow: hidden; }
  #chart { width: 100%; height: 100%; display: block; }
  .legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); margin: 4px 0 16px; }
  .legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

  /* numbers */
  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
  .box { background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; padding: 13px 15px; }
  .box .k { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .box .v { margin-top: 5px; font-size: 15px; font-weight: 700; color: #12211c; }
  .box .s { margin-top: 3px; font-size: 11px; color: var(--muted); }

  h3.sec { margin: 26px 0 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #3c454f; }

  table.lv { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff;
    border: 1px solid #e3e8ee; border-radius: 12px; overflow: hidden; }
  table.lv th, table.lv td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #eef1f4; }
  table.lv th { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #fafbfc; }
  table.lv tr:last-child td { border-bottom: 0; }

  .an { background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; padding: 15px 17px; margin-bottom: 10px; }
  .an h4 { margin: 0 0 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #3c454f; }
  .an p { margin: 0 0 7px; font-size: 12.5px; line-height: 1.62; color: #26303b; }
  .an p:last-child { margin-bottom: 0; }
  .an b { color: #12211c; }
  .an .tag { display: inline-block; font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin: 0 5px 5px 0; }
  .an .good { background: rgba(22,88,63,.12); color: #14503a; }
  .an .warn { background: #fff3d6; color: #7a5a00; }
  .an .bad  { background: #fdeeee; color: #8f1f19; }
  .an .neutral { background: #eef1f4; color: #3c454f; }
  .an .src { font-size: 10.5px; color: #8a949e; margin-top: 8px; }

  .note, .note b, table.lv th, table.lv td, .legend, .out, .an .src {
    font-family: inherit;
  }
  .note { margin-top: 18px; padding: 12px 14px; border-radius: 12px;
    background: #fff8e6; border: 1px solid #f0d9a0; font-size: 11.5px; line-height: 1.6; color: #6b4e00; }

  @media (max-width: 640px) {
    .chartbox { height: 260px; }
    .qprice .p { font-size: 24px; }
  }

/* ---- language tag ---- */
.langbox {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: rgba(250, 251, 252, .92);
  border: 1px solid rgba(43, 47, 54, .14);
  box-shadow: 0 6px 18px -8px rgba(25, 35, 50, .3);
}
.langbox .lang {
  font: inherit;
  font-size: 10px; font-weight: 700; letter-spacing: .07em;
  padding: 6px 11px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: #3c454f; white-space: nowrap;
  transition: background .18s, color .18s;
}
.langbox .lang:hover { background: rgba(22, 88, 63, .09); color: #14503a; }
.langbox .lang.on { background: #16583f; color: #fff; }
.langbox .lang:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- the "current preview" pill sits to the right of the main-page pill ---- */
.back.pill-preview {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: #16583f; border: 1px solid #16583f;
  box-shadow: 0 8px 20px -10px rgba(22, 88, 63, .8);
  color: #fff; text-decoration: none; font-weight: 700;
  font-family: "Noto Sans Gujarati", "Noto Sans Devanagari", "Nirmala UI",
               "Segoe UI", system-ui, sans-serif;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; transition: background .25s, box-shadow .25s;
}
.back.pill-preview .arw { font-size: 13px; line-height: 1; color: #cfe8dc; }
.back.pill-preview:hover { background: #11452f; box-shadow: 0 8px 22px -10px rgba(22, 88, 63, .95); }
.back.pill-preview:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* theme.css gives the proprietor label a mono font; in Gujarati / Hindi that renders
   as empty boxes, so let it follow the page font stack. */
.proprietor { font-family: "Noto Sans Gujarati", "Noto Sans Devanagari", "Nirmala UI",
                           "Segoe UI", system-ui, sans-serif; }
.proprietor .pr-label, .proprietor .pr-name { font-family: inherit; }
.proprietor .pr-name { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }

/* the back pills are mono in theme.css; in Gujarati / Hindi that renders as boxes */
.back.pill-back {
  font-family: "Noto Sans Gujarati", "Noto Sans Devanagari", "Nirmala UI",
               "Segoe UI", system-ui, sans-serif;
  font-size: 10px; letter-spacing: .1em;
}

/* Gujarati and Devanagari have no upper case, and letter-spacing breaks their conjuncts.
   At the small "label" sizes that made headings unreadable, so relax both. */
html[lang="gu"] .box .k, html[lang="hi"] .box .k,
html[lang="gu"] h3.sec, html[lang="hi"] h3.sec,
html[lang="gu"] .an h4, html[lang="hi"] .an h4,
html[lang="gu"] table.lv th, html[lang="hi"] table.lv th,
html[lang="gu"] .brand small, html[lang="hi"] .brand small,
html[lang="gu"] .brand b, html[lang="hi"] .brand b,
html[lang="gu"] .legend, html[lang="hi"] .legend {
  text-transform: none;
  letter-spacing: .015em;
  font-size: 11px;
}
html[lang="gu"] .brand b, html[lang="hi"] .brand b { font-size: 13.5px; }

/* One rule for every mono-styled label: in Gujarati / Hindi the theme's monospace
   stack has no glyphs for those scripts, so the whole page would show tofu boxes.
   Redefining the custom property here fixes every element that uses it. */
html[lang="gu"], html[lang="hi"] {
  --mono: "Noto Sans Gujarati", "Noto Sans Devanagari", "Nirmala UI",
          "Segoe UI", system-ui, sans-serif;
}
html[lang="gu"] *, html[lang="hi"] * {
  font-variant-ligatures: normal;
}
