/* - - - - - - - - - - - - - - - - - - - - - - - - - -
site.css
- - - - - - - - - - - - - - - - - - - - - - - - - - */

/*
Design token naming:
- --site-* : site-level semantic tokens (color, spacing, typography, layout)
- --ut6-*  : UI shell tokens (layers, offsets, shell-specific behavior)
*/
:root {
  --site-bg: #f6f8fb;
  --site-text: #1e2430;
  --site-muted: #5b6475;
  --site-link: #0a66c2;
  --ut6-accent: #0f766e;
  --ut6-accent-strong: #115e59;
  --ut6-accent-deep: #134e4a;
  --site-border: #dbe3ef;
  --site-card-bg: #ffffff;
  --site-layout-max: 1100px;
  --site-space: 20px;
  --site-header-height: 80px;
  --ut6-top-promo-height: 0px;
  --ut6-header-offset: calc(var(--ut6-top-promo-height) + var(--site-header-height));
  --ut6-layer-header: 1030;
  --ut6-layer-top-promo: 1031;
  --ut6-layer-drawer-backdrop: 1040;
  --ut6-layer-drawer: 1045;
  --ut6-layer-floating-nav: 1060;
  --ut6-layer-toast: 1090;
}

body.ut6-has-top-promo,
body:has(.ut6-top-promo-bar:not(.ut6-is-dismissed)) {
  --ut6-top-promo-height: 44px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--site-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  background: var(--site-bg);
  color: var(--site-text);
}

a[href] {
  cursor: pointer;
}

.btn-outline-secondary {
  padding-top: 7px;
  border-radius: 40px;
}

.l-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.l-header {
  position: fixed;
  top: var(--ut6-top-promo-height);
  left: 0;
  right: 0;
  height: var(--site-header-height);
  background: transparent;
  border-bottom: 0;
  z-index: var(--ut6-layer-header);
  pointer-events: none;
}

.l-header .in-header,
.l-main .in-main,
.l-footer .in-footer {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-left: var(--site-space);
  padding-right: var(--site-space);
}

.l-header .in-header {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  pointer-events: none;
}

.l-header .in-header > * {
  pointer-events: auto;
}

.l-header .l-logo {
  width: auto;
  height: 100%;
  margin-right: auto;
}

.l-header .l-logo a {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 10px 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.l-header .l-logo a img {
  display: block;
  width: auto;
  height: calc(100% - 20px);
}

.l-header .l-utility {
  margin-left: auto;
}

.ut6-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 8px 12px;
  border: 1px solid #1f2937;
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.ut6-skip-link:focus {
  transform: translateY(0);
}

.ut6-top-promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--ut6-layer-top-promo);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ut6-top-promo-height);
  padding: 8px var(--site-space);
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e 0%, #115e59 100%);
}

.ut6-top-promo-bar.ut6-is-dismissed {
  display: none;
}

.ut6-top-promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.ut6-top-promo-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.ut6-top-promo-link {
  color: #d1fae5;
  font-weight: 700;
  text-decoration: underline;
}

.ut6-top-promo-link:hover {
  color: #ffffff;
}

.ut6-top-promo-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.ut6-menu-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  cursor: pointer;
}

.ut6-menu-button:hover {
  border-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.78);
}

.ut6-menu-button:focus-visible {
  outline: 2px solid #99f6e4;
  outline-offset: 1px;
  border-color: #0f766e;
}

.ut6-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.ut6-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--ut6-layer-drawer-backdrop);
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.ut6-global-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--ut6-layer-drawer);
  width: min(440px, 88vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -16px 0 40px rgba(16, 24, 40, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.ut6-global-drawer[aria-hidden="true"] {
  visibility: hidden;
}

.ut6-global-drawer.show,
body.ut6-offcanvas-open .ut6-global-drawer {
  transform: translateX(0);
}

.ut6-global-drawer.show[aria-hidden="false"],
body.ut6-offcanvas-open .ut6-global-drawer {
  visibility: visible;
}

body.ut6-offcanvas-open .ut6-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.ut6-global-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #eceff3;
}

.ut6-global-drawer-title {
  margin: 0;
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 700;
}

.ut6-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d6dbe1;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}

.ut6-drawer-close:hover {
  background: #f8fafc;
}

.ut6-drawer-close:focus-visible {
  outline: 2px solid #99f6e4;
  outline-offset: 1px;
  border-color: #0f766e;
}

.ut6-global-drawer-nav {
  display: block;
  padding: 0.75rem;
}

.ut6-global-drawer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ut6-global-drawer-nav li + li {
  margin-top: 0.25rem;
}

.ut6-global-drawer-nav a {
  display: block;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
}

.ut6-nav-collapse-toggle {
  display: block;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  color: #334155;
  background: transparent;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.ut6-drawer-submenu {
  display: none;
  margin-top: 0.25rem;
  padding-left: 0;
}

.ut6-drawer-submenu.show {
  display: block;
}

.ut6-drawer-submenu > li > a {
  padding-left: 1.55rem;
}

.ut6-nav-logout-form {
  margin: 0;
}

.ut6-nav-logout-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  color: #334155;
  background: transparent;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.ut6-global-drawer-nav a:hover {
  color: #0f766e;
  background: #f0fdfa;
}

.ut6-nav-collapse-toggle:hover {
  color: #0f766e;
  background: #f0fdfa;
}

.ut6-nav-logout-button:hover {
  color: #0f766e;
  background: #f0fdfa;
}

.ut6-global-drawer-nav a:focus-visible {
  outline: 2px solid #99f6e4;
  outline-offset: 2px;
}

.ut6-nav-collapse-toggle:focus-visible {
  outline: 2px solid #99f6e4;
  outline-offset: 2px;
}

.ut6-nav-logout-button:focus-visible {
  outline: 2px solid #99f6e4;
  outline-offset: 2px;
}

.ut6-global-drawer-divider {
  height: 1px;
  margin: 0.5rem 0.75rem;
  background: #e5e7eb;
}

.ut6-language-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.75rem 1rem;
  color: var(--site-muted);
  font-size: 0.8125rem;
}

.ut6-language-form select {
  width: 100%;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--site-text);
  font-size: 0.8125rem;
  padding: 6px 10px;
}

.l-main {
  display: block;
  flex: 1 0 auto;
  min-height: 0;
  padding-top: var(--ut6-header-offset);
}

.l-main .in-main {
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(24px, 5vw, 56px);
}

.l-main .in-main > *:last-child {
  margin-bottom: 0 !important;
}

.ut6-content-constrained {
  width: min(var(--site-layout-max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.ut6-content-body {
  --ut6-content-code-bg: #eaf8f5;
  --ut6-content-code-border: #ccebe5;
  --ut6-content-code-text: #172033;
  color: #1f2937;
  line-height: 1.85;
}

.ut6-content-body > *:first-child {
  margin-top: 0;
}

.ut6-content-body > *:last-child {
  margin-bottom: 0;
}

.ut6-content-body h2,
.ut6-content-body h3,
.ut6-content-body h4,
.ut6-content-body h5,
.ut6-content-body h6 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  line-height: 1.45;
  font-weight: 700;
  color: #111827;
}

.ut6-content-body h2 {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--site-border);
  font-size: 1.45rem;
}

.ut6-content-body h3 {
  font-size: 1.25rem;
}

.ut6-content-body h4 {
  font-size: 1.08rem;
}

.ut6-content-body p,
.ut6-content-body ul,
.ut6-content-body ol,
.ut6-content-body pre,
.ut6-content-body blockquote,
.ut6-content-body figure {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.ut6-content-body ul,
.ut6-content-body ol {
  padding-left: 1.45rem;
}

.ut6-content-body li + li {
  margin-top: 0.25rem;
}

.ut6-content-body pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--ut6-content-code-border);
  border-radius: 8px;
  background: var(--ut6-content-code-bg);
  color: var(--ut6-content-code-text);
  line-height: 1.6;
  white-space: pre;
}

.ut6-content-body pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.ut6-content-body code {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: var(--ut6-content-code-bg);
  color: var(--ut6-content-code-text);
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.ut6-content-body blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--site-border);
  color: var(--site-muted);
}

.ut6-floating-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: var(--ut6-layer-floating-nav);
  transform: translateX(-50%);
  transition: opacity 0.18s ease;
}

body.ut6-offcanvas-open .ut6-floating-nav {
  opacity: 0;
  pointer-events: none;
}

.ut6-floating-nav .btn {
  border-radius: 999px;
}

.ut6-toast-container {
  z-index: var(--ut6-layer-toast);
}

.ut6-modal-root {
  /* Keep Bootstrap modal in root stacking context so backdrop does not block close controls. */
  position: static;
}

.l-footer {
  clear: both;
  background: #f3f3f3;
  border-top: 1px solid var(--site-border);
}

.l-footer .in-footer {
  display: flex;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}

.l-footer .c-copyright {
  width: 100%;
  margin-top: 0;
  font-size: 0.75rem;
  text-align: center;
  color: var(--site-muted);
}

.ut6-text-muted {
  color: var(--site-muted);
}

.ut6-empty-state,
.ut6-error-state,
.ut6-surface-card {
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: #ffffff;
}

.ut6-empty-state,
.ut6-error-state {
  padding: 20px;
}

.ut6-empty-state h2,
.ut6-error-state h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.ut6-empty-state p,
.ut6-error-state p {
  margin: 0;
  color: var(--site-muted);
}

.ut6-error-state {
  border-color: #fecaca;
  background: #fff7f7;
}

.ut6-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Bootstrap primary button color (shared by account/management screens) */
.btn-primary {
  padding-top: 6px;
  border-radius: 40px;
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--ut6-accent);
  --bs-btn-border-color: var(--ut6-accent);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--ut6-accent-strong);
  --bs-btn-hover-border-color: var(--ut6-accent-strong);
  --bs-btn-focus-shadow-rgb: 15, 118, 110;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--ut6-accent-deep);
  --bs-btn-active-border-color: var(--ut6-accent-deep);
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: var(--ut6-accent);
  --bs-btn-disabled-border-color: var(--ut6-accent);
}

/* Accent link style without underline, with a subtle hover motion */
.ut6-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.14rem 0.2rem 0.08rem 0.2rem;
  border-radius: 6px;
  color: var(--ut6-accent);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.ut6-link-icon::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: url("/static/front_web/assets/img-leaf/icon/link-01-deep-teal.b9717b9d48e7.svg") no-repeat center -1px;
  background-size: contain;
  opacity: 0.82;
}

.ut6-link-icon:hover {
  color: var(--ut6-accent-strong);
  background: #e8f7f4;
}

.ut6-link-icon:focus-visible {
  outline: 2px solid #99f6e4;
  outline-offset: 2px;
}

/* Marker-style accent link */
.ut6-link-accent {
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  padding: 0 0.08em;
  color: #0f766e;
  font-weight: 400;
  text-decoration: none;
  background-image: linear-gradient(transparent 74%, rgba(15, 118, 110, 0.24) 74%);
  background-repeat: no-repeat;
  transition: background-image 0.18s ease;
}

.ut6-link-accent:hover {
  color: #0f766e;
  background-image: linear-gradient(transparent 72%, rgba(15, 118, 110, 0.32) 72%);
}

.ut6-link-accent:focus-visible {
  outline: 2px solid #99f6e4;
  outline-offset: 2px;
}

@media only screen and (max-width: 834px) {
  :root {
    --site-header-height: 60px;
    --site-space: 16px;
  }

  body.ut6-has-top-promo,
  body:has(.ut6-top-promo-bar:not(.ut6-is-dismissed)) {
    --ut6-top-promo-height: 40px;
  }

  .l-header .in-header {
    gap: 16px;
  }

  .ut6-top-promo-text {
    font-size: 0.75rem;
  }

  .ut6-global-drawer {
    width: min(420px, 94vw);
  }

  .ut6-language-form {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ut6-language-form select {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

@media only screen and (min-width: 835px) {
  .ut6-floating-nav {
    left: auto;
    right: 20px;
    bottom: 20px;
    transform: none;
  }
}

@media only screen and (min-width: 1141px) {
  .l-header .in-header,
  .l-main .in-main {
    width: 1100px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ut6-skip-link,
  .ut6-drawer-backdrop,
  .ut6-global-drawer,
  .ut6-floating-nav {
    transition: none;
  }
}
