/* Copyright (c) 2026 Sachin Daluja. All Rights Reserved. */

/* ── Theme variables ── */
:root {
  color-scheme: light dark;

  /* Text */
  --color-text: #1a2a3a;
  --color-text-secondary: #4a6278;
  --color-text-muted: #8096a8;
  --color-text-on-accent: #fff;
  --color-text-on-chart: floralwhite;
  --color-text-on-surface: #e4ecf4;

  /* Backgrounds */
  --color-bg: #f4f6f8;
  --color-bg-surface: #1e3248;
  --color-bg-surface-alt: #283e58;
  --color-bg-result: #fcfcfd;
  --color-bg-input: #fff;

  /* Borders */
  --color-border-surface: #1a2e4430;
  --color-border-input: #5a90b8;
  --color-border-result: #c8d6e2;

  /* Primary */
  --color-primary: #2a7ab8;
  --color-primary-hover: #1e6090;

  /* Query options */
  --color-bg-query-options: #1a2e44e0;
  --color-border-query-options: #2a4a6840;
  --color-bg-footnote: #f0a030;

  /* Chart */
  --color-chart-grad-top: #1a2e44;
  --color-chart-grad-bottom: #24405e;
  --color-bar-default: #4a9ed6;
  --color-bar0: #90a4ae;
  --color-bar1: #4a9ed6;
  --color-bar2: #81c7f0;
  --color-bar3: #f0a030;
  --color-bar4: #e86830;
  --color-bar5: #ffd040;

  /* Table */
  --color-table-header: #c8dcea;
  --color-table-border: #92b0c8;
  --color-table-row-odd: #fff;
  --color-table-row-even: #e8f0f8;

  /* Tooltip */
  --color-bg-tooltip: #e8f0f8;
  --color-border-tooltip: #a0c4de;
  --color-shadow-tooltip: rgba(0, 0, 0, 0.18);

  /* Status */
  --color-bg-error: #e07828;
  --color-highlight: #ffe47a;

  /* Modal */
  --color-modal-overlay: rgba(0, 0, 0, 0.4);
  --color-bg-modal: #fff;
  --color-border-modal: #92b0c8;
  --color-bg-modal-header: #a0c8e4;
  --color-modal-tab-btn: #dde8f0;
  --color-modal-tab-active-border: #f0a030;
  --color-modal-tab-active-bg: #fff;

  /* Alert */
  --color-alert: #e07828;

  /* Misc */
  --color-bg-yr-item: #c8dcea;
  --color-close-icon: #8096a8;
  --color-close-icon-hover: #1a2a3a;

  /* Buttons */
  --color-bg-button: #e4ecf4;
  --color-border-button: #8ab0cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #d0dce8;
    --color-text-secondary: #94aec4;
    --color-text-muted: #607888;
    --color-text-on-accent: #fff;
    --color-text-on-surface: #c0d0e0;

    --color-bg: #0c1218;
    --color-bg-surface: #141e2a;
    --color-bg-surface-alt: #1a2836;
    --color-bg-result: #101820;
    --color-bg-input: #0e161e;

    --color-border-surface: #2a4a6840;
    --color-border-input: #305070;
    --color-border-result: #2a3a4a;

    --color-primary: #6ab4e8;
    --color-primary-hover: #8acaff;

    --color-bg-query-options: #10202ee0;
    --color-border-query-options: #2a4a6840;
    --color-bg-footnote: #b07818;

    --color-chart-grad-top: #0c1620;
    --color-chart-grad-bottom: #142030;
    --color-bar-default: #3a80b8;
    --color-bar0: #687880;
    --color-bar1: #3a80b8;
    --color-bar2: #60a8d8;
    --color-bar3: #d08820;
    --color-bar4: #c85828;
    --color-bar5: #d8b030;

    --color-table-header: #182838;
    --color-table-border: #283848;
    --color-table-row-odd: #101820;
    --color-table-row-even: #162030;

    --color-bg-tooltip: #162030;
    --color-border-tooltip: #304860;
    --color-shadow-tooltip: rgba(0, 0, 0, 0.5);

    --color-bg-error: #c06820;
    --color-highlight: #8a7818;

    --color-modal-overlay: rgba(0, 0, 0, 0.6);
    --color-bg-modal: #101820;
    --color-border-modal: #283848;
    --color-bg-modal-header: #1a2838;
    --color-modal-tab-btn: #162030;
    --color-modal-tab-active-border: #e09828;
    --color-modal-tab-active-bg: #101820;

    --color-alert: #d87020;

    --color-bg-yr-item: #182838;
    --color-close-icon: #607888;
    --color-close-icon-hover: #d0dce8;

    --color-bg-button: #1a2836;
    --color-border-button: #305070;
  }
}

/* ── Fonts ── */
@font-face {
  font-family: "MonaSans";
  src: url("MonaSans-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "MonaSans-SemiBold";
  src: url("MonaSans-SemiBold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "MonaSans-SemiCondensed";
  src: url("MonaSans-SemiCondensed-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "MonaSans-Condensed";
  src: url("MonaSans-Condensed-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* ── Base ── */
input {
  line-height: inherit;
  font-size: inherit;
  font-family: inherit;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "MonaSans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.25px;
  background-color: var(--color-bg);
  color: var(--color-text);
}
h1, h2, h3, h4, h5 {
  letter-spacing: normal;
}
p {
  line-height: 1.75;
}
.short_summary_para {
  line-height: 1.5;
  margin-top: .25rem;
  margin-bottom: .25rem;
}
.icon {
  width: 34px;
}
.search_query_hint {
  font-size: .95rem;
  line-height: revert;
}
form h3.title {
  margin-top: 8px;
  margin-bottom: 16px;
}
form.search_core {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Landing ── */
.landingContainer {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  background: #eee8d8;
  color: var(--color-text);
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #d4c8a830;
  width: 100%;
  max-width: 1024px;
}
@media (prefers-color-scheme: dark) {
  .landingContainer {
    background: var(--color-bg-surface);
    color: var(--color-text-on-surface);
    border-color: var(--color-border-surface);
  }
}
.landingSearchContainer {
  position: relative;
}
.landingSearchContainer .logoContainer {
  position: absolute;
  display: flex;
  height: 100%;
  align-items: center;
  width: 200px;
  flex-direction: column;
  justify-content: center;
}
.landingSearchContainer .logoContainer img.logo {
  width: 150px;
  height: 150px;
  padding-bottom: 5px;
}
form.landing_search {
  padding: 12px;
  box-sizing: border-box;
}

/* ── Search form (report page) ── */
form.std_search {
  margin-top: 8px;
  padding: 8px;
  background: var(--color-bg-surface);
  color: var(--color-text-on-surface);
  margin-bottom: 16px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid var(--color-border-surface);
  width: 100%;
  max-width: 1024px;
}

/* ── Inputs ── */
input[type="text"] {
  padding: 8px 12px;
  border: 1px solid var(--color-border-input);
  border-radius: 4px;
  margin-bottom: 16px;
  min-width: 260px;
  max-width: 600px;
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  background-color: var(--color-bg-input);
  color: var(--color-text);
}
input[type="submit"] {
  color: var(--color-text-on-accent);
  background-color: var(--color-primary);
  border: none;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  min-width: 260px;
  max-width: 320px;
  width: 100%;
  height: 34px;
  font-variant: small-caps;
}
input[type="submit"]:hover {
  background-color: var(--color-primary-hover);
}
::placeholder {
  color: var(--color-text-muted);
  font-weight: 300;
}

/* ── Buttons ── */
button {
  background-color: var(--color-bg-button);
  color: var(--color-text);
  border: 1px solid var(--color-border-button);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* ── Compact search bar ── */
.compact_search_bar input[type="text"] {
  min-width: unset;
  max-width: unset;
  width: 100%;
}
.companyNameStylized {
  font-family: Charter, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.25rem;
}
.compact_search_bar .logoContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: none;
}
.compact_search_bar .logoContainer .companyNameStylized {
  margin: 0 0 0 5px;
}
@media screen and (min-width: 500px) {
  .compact_search_bar {
    display: flex;
    max-width: 600px;
    width: 100%;
    flex-direction: row;
    align-items: center;
  }
  .compact_search_bar input[type="text"] {
    margin: 0 0 0 8px;
  }
  .compact_search_bar input[type="submit"] {
    min-width: unset;
    max-width: unset;
    width: 200px;
    margin: 0 0 0 8px;
  }
}
@media screen and (max-width: 499px) {
  .compact_search_bar {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    width: 100%;
    align-items: center;
  }
  .compact_search_bar input[type="text"] {
    margin: 8px 0 0 0;
  }
  .compact_search_bar input[type="submit"] {
    min-width: unset;
    max-width: unset;
    width: 200px;
    margin: 8px 0 0 0;
  }
  .landingSearchContainer {
    display: flex;
    flex-direction: column;
    position: static;
  }
  .landingSearchContainer .logoContainer {
    position: static;
    height: unset;
    align-items: center;
    width: unset;
    flex-direction: row;
    justify-content: center;
  }
  .landingSearchContainer .logoContainer img.logo {
    width: 100px;
    height: 100px;
    padding-bottom: unset;
    padding-right: 5px;
  }
}

/* ── Query display ── */
.queryText {
  font-style: italic;
  font-weight: bold;
}
.queryOptionLabel {
  font-variant: small-caps;
  font-size: .85rem;
  font-weight: bold;
  font-family: MonaSans-SemiBold;
}
.queryOptionsContainer {
  background-color: var(--color-bg-query-options);
  color: var(--color-text-on-surface);
  width: 100%;
  max-width: 1024px;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 7px;
  border: 1px solid var(--color-border-query-options);
  margin-bottom: 16px;
}
.queryOptionsFootnote {
  font-size: smaller;
  background-color: var(--color-bg-footnote);
  padding: 4px 8px 4px 8px;
  border-radius: 0px 0px 7px 7px;
}
.no_records {
  text-align: center;
}
.barLike {
  display: flex;
  align-items: center;
  height: 1.75rem;
}
.content_brief_line {
  overflow: hidden;
  margin-right: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 5;
}
.content_detail_btn {
  width: 145px;
  height: 1.5rem;
}

/* ── Query status ── */
#queryStatusContainer {
  transition: height 1s;
  overflow-y: clip;
  width: 100%;
}
#query_status {
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.squeezedToHide {
  height: 0;
}
.queryStatusContainerNormalHeight {
  height: 55px;
}
@starting-style {
  .queryStatusContainerNormalHeight {
    height: 0;
  }
}
#query_status_text {
  width: 100%;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
}
.error_background_color {
  background-color: var(--color-bg-error);
}
#query_progress_bar {
  display: none;
  min-width: 260px;
  max-width: 600px;
  width: 100%;
}

/* ── Results ── */
.result {
  width: 100%;
  min-width: 260px;
  max-width: 1024px;
  text-align: justify;
  border: 1px solid var(--color-border-result);
  padding: 8px;
  box-sizing: border-box;
  border-radius: 7px;
  background: var(--color-bg-result);
}
.result h3 {
  font-variant: small-caps;
  font-family: MonaSans-SemiBold;
}
.result h4 {
  font-variant: small-caps;
  font-family: MonaSans-SemiBold;
}
.prefmt {
  white-space: pre-line;
}
.hilite {
  background-color: var(--color-highlight);
}

/* ── Year case counts ── */
.yr_case_counts_area {
}
.yr_case_count_item {
  background: var(--color-bg-yr-item);
  padding-top: 3px;
  border-radius: 3px;
  padding-left: 2px;
  padding-right: 2px;
}

/* ── Close icon ── */
.symbol_close {
  color: var(--color-close-icon);
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.symbol_close:hover,
.symbol_close:focus {
  color: var(--color-close-icon-hover);
  text-decoration: none;
  cursor: pointer;
}

/* ── Chart ── */
.chart_box {
  background: linear-gradient(var(--color-chart-grad-top), var(--color-chart-grad-bottom));
  border-radius: 7px;
  padding: 8px 0 0 0;
  margin-top: 8px;
}
.chart_yr_case_counts {
  width: 100%;
}
.chart_title {
  margin-top: 0;
  margin-bottom: 8px;
  padding: 0 8px 0 8px;
  color: var(--color-text-on-chart);
}
.chart_yr_case_counts_svg {
}
svg .bar {
  fill: var(--color-bar-default);
}
svg .bar0 {
  fill: var(--color-bar0);
}
svg .bar1 {
  fill: var(--color-bar1);
}
svg .bar2 {
  fill: var(--color-bar2);
}
svg .bar3 {
  fill: var(--color-bar3);
}
svg .bar4 {
  fill: var(--color-bar4);
}
svg .bar5 {
  fill: var(--color-bar5);
}
svg .legend_label {
  fill: var(--color-text-on-chart);
}

/* ── Alert dot ── */
.dot_bg {
  display: inline-block;
  width: .7rem;
  height: .7rem;
  background-color: var(--color-alert);
  border-radius: 50%;
  font-size: .6rem;
  text-align: center;
  margin-left: .2rem;
  color: white;
  font-family: "Times New Roman", serif;
}
p.reacNamesPara span {
  line-height: 1.2;
}

/* ── Tooltip ── */
.stdTooltip {
  font-size: smaller;
  white-space: nowrap;
  background-color: var(--color-bg-tooltip);
  padding: 0.5em;
  border: 1px solid var(--color-border-tooltip);
  box-shadow: 2px 4px 5px var(--color-shadow-tooltip);
  z-index: 1;
  color: var(--color-text);
}
.stdTooltip .fieldName {
  color: var(--color-text-secondary);
}

/* ── Footer / copyright ── */
.copyrightText {
  font-size: smaller;
}

/* ── Landing references ── */
form.search_landing {
  padding: 12px;
}
.landingReferencesContainer {
  font-size: .95rem;
  margin-top: 8px;
  max-width: 600px;
  align-self: center;
  padding: 0 8px 0 8px;
}
.landingReferences {
  padding-left: 0px;
  list-style-position: inside;
}
.stdHeading sup {
  font-size: small;
}

/* ── Misc ── */
.compact_search_bar .logoContainer div.logo {
}
.widget {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
