@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("/fonts/inter-variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --brand-primary: #a18647;
  --brand-primary-dark: #8b6f32;
  --brand-soft: rgba(161, 134, 71, 0.14);
  --text-base: #0f172a;
  --text-muted: #64748b;
  --text-muted-light: #94a3b8;
  --bg-page: linear-gradient(135deg, #f7f1e4, #fcfaf4);
  --radius-lg: 20px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-base);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.workspace-nav-link,
.workspace-nav-link:hover,
.workspace-nav-link:focus,
.workspace-footer-nav-link,
.workspace-footer-nav-link:hover,
.workspace-footer-nav-link:focus,
.sidebar-nav-link,
.sidebar-nav-link:hover,
.sidebar-nav-link:focus,
.workspace-footer-link,
.workspace-footer-link:hover,
.workspace-footer-link:focus,
.participant-card-link,
.participant-card-link:hover,
.participant-card-link:focus,
.dashboard-action-card-link,
.dashboard-action-card-link:hover,
.dashboard-action-card-link:focus {
  text-decoration: none;
}

.formation-workspace a:hover,
.formation-workspace a:focus,
[id^="formation_"] a:hover,
[id^="formation_"] a:focus {
  text-decoration: none;
}

.workspace-logo-row {
  min-width: 0;
}

.workspace-logo-full {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
}

html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-sidebar,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-sidebar {
  width: 5.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-logo-full,
html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-nav-heading-label,
html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-sidebar-label,
html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-footer-link-label,
html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-footer-link-chevron,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-logo-full,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-nav-heading-label,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-sidebar-label,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-footer-link-label,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-footer-link-chevron {
  display: none;
}

html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-logo-mark,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-logo-mark {
  display: block;
}

html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-logo-row,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-logo-row {
  justify-content: center;
}

html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-nav-heading,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-nav-heading {
  justify-content: center;
}

html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-nav-link,
html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-footer-nav-link,
html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-footer-link,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-nav-link,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-footer-nav-link,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-footer-link {
  justify-content: center;
  gap: 0;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.workspace-sidebar-toggle-icon {
  transform: rotate(180deg);
}

html[data-workspace-sidebar-collapsed="true"] .workspace-shell .workspace-sidebar-toggle-icon,
.workspace-shell[data-workspace-sidebar-collapsed="true"] .workspace-sidebar-toggle-icon {
  transform: rotate(0deg);
}

/* Landing layout */
header.site-header {
  padding: 1.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

header.site-header .brand {
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--brand-primary);
}

header.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.button,
header.site-header nav a,
header.site-header nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.95rem;
}

.button.primary,
header.site-header nav a.primary,
header.site-header nav button.primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  box-shadow: 0 16px 35px rgba(161, 134, 71, 0.24);
}

.button.secondary,
header.site-header nav a.secondary,
header.site-header nav button.secondary {
  background: #fff;
  border: 1px solid rgba(161, 134, 71, 0.32);
  color: var(--brand-primary-dark);
}

.button.primary:hover,
.button.secondary:hover,
header.site-header nav a.primary:hover,
header.site-header nav a.secondary:hover {
  transform: translateY(-1px);
}

.button.full {
  width: 100%;
  justify-content: center;
}

.inline-form {
  display: inline-block;
  margin: 0;
}

.inline-form .button {
  margin: 0;
}

.auth-choice {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

main.landing {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
}

.landing-card {
  width: 100%;
  max-width: 840px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
  padding: 3.5rem 3rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .landing-card {
    grid-template-columns: 1.1fr 1fr;
  }
}

.landing-card h1 {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.2;
  font-weight: 660;
  color: var(--brand-primary-dark);
}

.landing-card p.lead {
  margin: 1.5rem 0 2.3rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-row .primary,
.cta-row .secondary {
  text-decoration: none;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.feature-list li span.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--brand-soft);
  color: var(--brand-primary-dark);
  font-weight: 600;
  font-size: 0.75rem;
}

footer.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

.flash {
  margin-bottom: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
}

.flash.notice {
  background: var(--brand-soft);
  color: var(--brand-primary-dark);
  border: 1px solid rgba(161, 134, 71, 0.3);
}

.flash.alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

/* Auth card */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
  padding: 2.6rem;
  box-sizing: border-box;
}

.auth-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-intro h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
}

.auth-intro .subtitle {
  margin: 0.6rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(161, 134, 71, 0.32);
  background: #fcf7ee;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(161, 134, 71, 0.18);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-form .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  box-shadow: 0 15px 30px rgba(161, 134, 71, 0.24);
  transition: transform 0.15s ease;
}

.auth-form .primary:hover {
  transform: translateY(-1px);
}

.divider {
  text-align: center;
  margin: 2rem 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(161, 134, 71, 0.45);
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 1px;
  background: rgba(161, 134, 71, 0.25);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.auth-form .hint {
  margin: -0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted-light);
  text-align: center;
}

.auth-footer {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--brand-primary);
  font-weight: 600;
}

@keyframes dashboard-attention-drawer-in {
  from {
    opacity: 0.65;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dashboard-attention-drawer-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0.65;
    transform: translateX(100%);
  }
}

.dashboard-attention-drawer-panel {
  animation: dashboard-attention-drawer-in 180ms ease-out;
}

.dashboard-attention-drawer-panel.is-closing {
  animation: dashboard-attention-drawer-out 160ms ease-in forwards;
}

.domine-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.domine-select-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.45rem 0.65rem;
  color: #252f45;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.domine-select-option:hover,
.domine-select-option:focus {
  background: #f6f1e8;
  outline: none;
}

.domine-select-option[aria-selected="true"] {
  background: #eef7f3;
  color: #007a52;
}

.domine-select-option[disabled] {
  color: #9c948a;
  cursor: not-allowed;
}

.domine-select-group-label {
  margin: 0.35rem 0.55rem 0.2rem;
  color: #a18647;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.domine-rich-text {
  overflow: hidden;
  border: 1px solid #c9bead;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

.domine-rich-text trix-toolbar {
  display: block;
  border-bottom: 1px solid #ddd1bf;
  background: #fbf7ef;
  padding: 0.45rem;
}

.domine-rich-text trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.domine-rich-text trix-toolbar .trix-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0;
  padding-right: 0.35rem;
  border: 0;
  border-right: 1px solid #ddd1bf;
}

.domine-rich-text trix-toolbar .trix-button-group:last-child {
  border-right: 0;
}

.domine-rich-text trix-toolbar .trix-button-group-spacer {
  display: none;
}

.domine-rich-text trix-toolbar .trix-button {
  display: inline-flex;
  min-width: 1.8rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6c9b5;
  border-radius: 0.35rem;
  background: #fff;
  color: #252f45;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.domine-rich-text trix-toolbar .trix-button::before {
  color: currentColor;
  font-size: 0.72rem;
  line-height: 1;
}

.domine-rich-text trix-toolbar .trix-button:hover,
.domine-rich-text trix-toolbar .trix-button:focus {
  border-color: #c2994e;
  background: #f6f1e8;
  outline: none;
}

.domine-rich-text trix-toolbar .trix-button.trix-active {
  border-color: #009a67;
  background: #e7f7f1;
  color: #007a52;
}

.domine-rich-text trix-toolbar .trix-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.domine-rich-text trix-toolbar .trix-button--icon-bold::before { content: "B"; }
.domine-rich-text trix-toolbar .trix-button--icon-italic::before { content: "I"; font-style: italic; }
.domine-rich-text trix-toolbar .trix-button--icon-strike::before { content: "S"; text-decoration: line-through; }
.domine-rich-text trix-toolbar .trix-button--icon-link::before { content: "#"; }
.domine-rich-text trix-toolbar .trix-button--icon-heading-1::before { content: "H1"; }
.domine-rich-text trix-toolbar .trix-button--icon-quote::before { content: "\201C\201D"; }
.domine-rich-text trix-toolbar .trix-button--icon-code::before { content: "</>"; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.domine-rich-text trix-toolbar .trix-button--icon-bullet-list::before { content: "\2022"; font-size: 1rem; }
.domine-rich-text trix-toolbar .trix-button--icon-number-list::before { content: "1."; }
.domine-rich-text trix-toolbar .trix-button--icon-decrease-nesting-level::before { content: "-"; }
.domine-rich-text trix-toolbar .trix-button--icon-increase-nesting-level::before { content: "+"; }
.domine-rich-text trix-toolbar .trix-button--icon-attach::before { content: "+"; }
.domine-rich-text trix-toolbar .trix-button--icon-undo::before { content: "U"; }
.domine-rich-text trix-toolbar .trix-button--icon-redo::before { content: "R"; }

.domine-rich-text trix-toolbar .trix-dialogs {
  position: relative;
}

.domine-rich-text trix-toolbar .trix-dialog {
  margin-top: 0.5rem;
  border: 1px solid #d6c9b5;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.55rem;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

.domine-rich-text trix-toolbar .trix-dialog__link-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.domine-rich-text trix-toolbar .trix-input--dialog {
  min-width: min(18rem, 100%);
  flex: 1;
  border: 1px solid #c9bead;
  border-radius: 0.4rem;
  padding: 0.4rem 0.55rem;
  color: #252f45;
  font-size: 0.8125rem;
}

.domine-rich-text trix-toolbar .trix-button--dialog {
  min-width: auto;
  padding: 0 0.65rem;
  font-size: 0.75rem;
}

.domine-rich-text trix-editor {
  display: block;
  min-height: 12rem;
  border: 0;
  background: #fff;
  padding: 0.75rem;
  color: #252f45;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.domine-rich-text trix-editor:focus {
  outline: 2px solid rgba(161, 134, 71, 0.22);
  outline-offset: -2px;
}

.domine-disclosure > summary {
  list-style: none;
}

.domine-disclosure > summary::-webkit-details-marker {
  display: none;
}

.domine-disclosure > summary::marker {
  content: "";
}

.domine-disclosure .domine-disclosure-icon {
  transition: transform 160ms ease;
}

.domine-disclosure[open] .domine-disclosure-icon {
  transform: rotate(90deg);
}
