/* Shared theme bridge for the original rich public pages. */
html[data-theme="02"] {
  --ecmis-navy: #5b1720;
  --ecmis-navy-2: #832331;
  --ecmis-navy-dark: #2b0a10;
  --ecmis-gold: #e09a2f;
  --ecmis-gold-light: #f1c66c;
  --ecmis-red: #b52932;
  --ecmis-bg: #fff7f2;
}

html[data-theme="03"] {
  --ecmis-navy: #0f4c4c;
  --ecmis-navy-2: #176b67;
  --ecmis-navy-dark: #072d2d;
  --ecmis-gold: #d3a52e;
  --ecmis-gold-light: #f0cf70;
  --ecmis-red: #a33a32;
  --ecmis-bg: #f1f8f5;
}

html[data-theme="04"] {
  --ecmis-navy: #35235f;
  --ecmis-navy-2: #554083;
  --ecmis-navy-dark: #1d1238;
  --ecmis-gold: #b88931;
  --ecmis-gold-light: #dfbd6f;
  --ecmis-red: #a13b4f;
  --ecmis-bg: #f7f4fb;
}

html[data-theme="05"] {
  --ecmis-navy: #304739;
  --ecmis-navy-2: #4d6855;
  --ecmis-navy-dark: #18261e;
  --ecmis-gold: #a77b2d;
  --ecmis-gold-light: #d4b56b;
  --ecmis-red: #923c32;
  --ecmis-bg: #f4f0e5;
}

html[data-theme="06"] {
  --ecmis-navy: #202a36;
  --ecmis-navy-2: #354556;
  --ecmis-navy-dark: #0f151c;
  --ecmis-gold: #cb963e;
  --ecmis-gold-light: #e2bd76;
  --ecmis-red: #a33a35;
  --ecmis-bg: #eef1f4;
}

.ecmis-version-switch {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.58;
  padding: 0.35rem 0;
  font-size: 0.76rem;
  cursor: default;
  user-select: none;
}

.ecmis-version-switch:focus-visible {
  outline: 3px solid var(--ecmis-gold-light, #e6c765);
  outline-offset: 3px;
}

.ecmis-prototype-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dfb654;
  border-radius: 10px;
  background: #fff7db;
  color: #624812;
  font-size: 0.84rem;
}

.demo-credentials {
  display: block;
  margin-top: 0.45rem;
  color: var(--ecmis-navy, #0a2647);
}

.ecmis-theme-lab {
  width: min(690px, calc(100% - 2rem));
  border: 1px solid #dfe3ea;
  border-radius: 16px;
  padding: 0;
  color: var(--ecmis-ink, #20262e);
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 18, 31, 0.3);
}

.ecmis-theme-lab::backdrop {
  background: rgba(5, 16, 28, 0.74);
}

.ecmis-theme-lab__body {
  padding: 1.5rem;
  font-family: "Sarabun", sans-serif;
}

.ecmis-theme-lab__body h2 {
  margin: 0 0 0.35rem;
  color: var(--ecmis-ink, #20262e);
  font-family: "Sarabun", sans-serif;
}

.ecmis-theme-lab__hint {
  margin: 0 0 1rem;
  color: #687586;
  font-size: 0.86rem;
}

.ecmis-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ecmis-theme-choice {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 2px solid #dfe3ea;
  border-radius: 10px;
  background: #fff;
  color: var(--ecmis-ink, #20262e);
  text-align: left;
}

.ecmis-theme-choice:hover,
.ecmis-theme-choice.active {
  border-color: var(--ecmis-gold, #c9a227);
  background: color-mix(in srgb, var(--ecmis-gold, #c9a227) 12%, #fff);
}

.ecmis-theme-choice small {
  color: #687586;
}

.ecmis-theme-lab__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.ecmis-theme-lab__close {
  border: 1px solid var(--ecmis-navy, #0a2647);
  border-radius: 10px;
  background: var(--ecmis-navy, #0a2647);
  color: #fff;
  padding: 0.6rem 1rem;
}

.navbar-ecmis {
  background: linear-gradient(
    180deg,
    var(--ecmis-navy, #0a2647) 0%,
    var(--ecmis-navy-2, #123b63) 100%
  );
}

@media (max-width: 575.98px) {
  .ecmis-theme-grid {
    grid-template-columns: 1fr;
  }
}

html,
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
label,
span,
small,
strong,
th,
td {
  font-family: "Sarabun", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}
