@font-face {
  font-family: "Cormorant Garamond";
  src: url("/portal-assets/brand/cormorant-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --venue-serif: "Cormorant Garamond", Baskerville, Georgia, serif;
  --venue-sans: Inter, system-ui, sans-serif;
  --venue-cream: #faf9f6;
  --venue-paper: #f7f3eb;
  --venue-ink: #292722;
  --venue-muted: #696354;
  --venue-line: #ded5c3;
  --venue-gold: #8e6c2e;
  --venue-light-gold: #dfbf7d;
  --venue-header-height: 4.5rem;
  --venue-gutter: clamp(1rem, 4vw, 3rem);
  --venue-content-width: 75rem;
}

.venue-portal-header {
  position: relative;
  z-index: 40;
  min-height: var(--venue-header-height);
  color-scheme: light;
  background: var(--venue-cream);
  color: var(--venue-ink);
  font: 400 0.875rem/1.35 var(--venue-sans);
  border-block-end: 1px solid var(--venue-line);
}

.venue-portal-header[data-signed-in] {
  position: sticky;
  top: 0;
  color-scheme: dark;
  background: #080807;
  color: #f7f3eb;
  border-block-end-color: #514938;
}

.venue-header-inner {
  min-height: calc(var(--venue-header-height) - 1px);
  margin-inline: auto;
  padding-inline: var(--venue-gutter);
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 2vw, 1.5rem);
}

.venue-portal-header .venue-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex: 0 0 auto;
  color: #725521;
  font: 600 1.2rem/0.9 var(--venue-serif);
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.venue-portal-header[data-signed-in] .venue-brand { color: var(--venue-light-gold); }
.venue-brand img { flex-shrink: 0; object-fit: contain; }
.venue-portal-header[data-signed-in] .venue-brand img { filter: brightness(1.55); }

.venue-current-tool {
  border-inline-start: 1px solid #514938;
  padding-inline-start: clamp(0.625rem, 2vw, 1.5rem);
  color: #e8ddc7;
  font-weight: 600;
}

.venue-header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: clamp(0.375rem, 1.65vw, 1.25rem);
  min-width: 0;
  margin-inline-start: auto;
}

.venue-portal-header:not([data-signed-in]) .venue-header-actions,
.venue-portal-header [hidden] {
  display: none !important;
}

.venue-portal-header :is(a, button):focus-visible {
  outline: 2px solid var(--venue-light-gold);
  outline-offset: 3px;
}

.venue-portal-header:not([data-signed-in]) a:focus-visible,
.venue-portal-header .venue-app:focus-visible {
  outline-color: var(--venue-gold);
}

.venue-portal-header .venue-launcher-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--venue-light-gold);
  background: transparent;
  border: 1px solid #665735;
  border-radius: 8px;
  cursor: pointer;
}

.venue-portal-header .venue-launcher-button:hover,
.venue-portal-header .venue-launcher-button[aria-expanded="true"] {
  background: #30291d;
  border-color: var(--venue-light-gold);
}

.venue-launcher-icon {
  width: 21px;
  height: 21px;
  background: radial-gradient(circle, currentColor 2px, transparent 2.3px) 0 0 / 7px 7px;
}

.venue-apps {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: var(--venue-gutter);
  width: min(19.5rem, calc(100% - 2 * var(--venue-gutter)));
  padding: 0.9rem;
  border: 1px solid var(--venue-line);
  border-radius: 0.75rem;
  background: var(--venue-cream);
  color: var(--venue-ink);
  color-scheme: light;
  box-shadow: 0 16px 36px #20170926;
}

.venue-apps .venue-apps-heading {
  margin: 0 0 0.75rem;
  padding-inline: 0.25rem;
  font-size: 0.875rem;
  font-weight: 650;
}

.venue-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.venue-portal-header .venue-app {
  display: grid;
  place-items: center;
  align-content: start;
  gap: 0.6rem;
  padding: 0.65rem 0.375rem;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--venue-ink);
  text-align: center;
  text-decoration: none;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.venue-portal-header .venue-app:hover,
.venue-portal-header .venue-app:focus-visible {
  background: #f3eddf;
  border-color: var(--venue-line);
}

.venue-tool-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #e8dcc4;
  border-radius: 8px;
  background: #f4ecdb;
  color: #725521;
}
.venue-tool-icon > span {
  position: relative;
  width: 19px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.venue-tool-icon > span::before,
.venue-tool-icon > span::after { position: absolute; content: ""; }
.venue-tool-icon[data-icon="dashboard"] > span::before {
  inset-inline: 0;
  top: 4px;
  border-top: 1.5px solid;
}
.venue-tool-icon[data-icon="dashboard"] > span::after {
  left: 5px;
  top: 5px;
  bottom: 0;
  border-left: 1.5px solid;
}
.venue-tool-icon[data-icon="kanban"] > span::before {
  top: 3px;
  left: 3px;
  width: 2px;
  height: 7px;
  background: currentColor;
  box-shadow: 4px 0 currentColor, 8px 0 currentColor;
}
.venue-tool-icon[data-icon="kanban"] > span::after {
  top: 10px;
  left: 7px;
  width: 2px;
  height: 2px;
  background: currentColor;
}
.venue-tool-icon[data-icon="wiki"] > span {
  width: 17px;
  height: 19px;
  border-inline-start-width: 3px;
}
.venue-tool-icon[data-icon="wiki"] > span::before {
  top: 4px;
  inset-inline: 3px;
  border-top: 1.5px solid;
  box-shadow: 0 4px currentColor;
}

.venue-tool-icon[data-icon="audience"] > span::before {
  left: 3px;
  bottom: 3px;
  width: 2px;
  height: 3px;
  background: currentColor;
  box-shadow: 4px -2px currentColor, 8px -5px currentColor;
}
.venue-tool-icon[data-icon="audience"] > span::after {
  bottom: 2px;
  inset-inline: 2px;
  border-bottom: 1px solid;
}

.venue-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html:not(:lang(en)) .venue-localized > [lang="en"],
html:lang(en) .venue-localized > [lang="fr"] {
  display: none;
}

body[data-venue-tool="wiki"] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

body[data-venue-tool="wiki"] .thread-panel {
  top: var(--venue-header-height);
  height: calc(100dvh - var(--venue-header-height));
}

body[data-venue-tool="kanban"] .appShell {
  min-height: calc(100vh - var(--venue-header-height));
}

@media (max-width: 760px) {
  body[data-venue-tool="wiki"] :is(.sidebar, .sidebar-backdrop) { top: var(--venue-header-height); }
  body[data-venue-tool="wiki"] .sidebar { height: calc(100% - var(--venue-header-height)); }
}

@media (max-width: 26rem) {
  .venue-portal-header .venue-brand {
    font-size: 1.02rem;
    gap: 0.4rem;
  }
  .venue-brand img { width: 29px; height: 33px; }
}

@media print {
  .venue-portal-header { display: none; }
  body[data-venue-tool="wiki"] { display: block; }
}
