@charset "UTF-8";
.classical {
  --color-text: #201f1d;
  --color-surface: #eae9e9;
  --color-accent: #b68235;
  --color-divider: color-mix(in srgb, #201f1d 16%, transparent);
  --color-neutral-100: #f8f4f4;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-accent-100: #fff3e4;
  --color-accent-200: #ffe3bf;
  --color-accent-300: #facb8d;
  --color-accent-400: #e1ad66;
  --color-accent-500: #c28d41;
  --color-accent-600: #a06f24;
  --color-accent-700: #7d5411;
  --color-accent-800: #5a3b0a;
  --font-heading: "Garamond", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;
  --paper: color-mix(in oklch, var(--color-accent-200) 34%, var(--color-neutral-100));
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27320%27 height=%27320%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.75%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .2 0 0 0 .22 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E");
  --hover-tint: color-mix(in srgb, var(--color-accent) 7%, transparent);
  --focus-tint: color-mix(in srgb, var(--color-accent) 8%, transparent);
  color: var(--color-text);
  font-family: var(--font-body);
}

/** aged paper: noise multiplied onto the paper colour plus a warm vignette **/
.paper-aged {
  background-color: var(--paper);
  background-image: var(--paper-noise);
  background-blend-mode: multiply;
}

.paper-aged.vignette {
  box-shadow: inset 0 0 90px color-mix(in srgb, var(--color-accent-500) 28%, transparent), inset 0 0 14px color-mix(in srgb, var(--color-accent-600) 22%, transparent), 0 12px 32px rgba(0, 0, 0, 0.5);
}

/** neutralise the dark app-wide element styles inside the paper (:where keeps specificity low) **/
.sheet :where(a, p, button, input, select, textarea, label), .sheet-dialog :where(a, p, button, input, select, textarea, label) {
  margin: 0;
  padding-top: 0;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
}
.sheet :where(a), .sheet-dialog :where(a) {
  font-weight: inherit;
  text-decoration: none;
  cursor: pointer;
}
.sheet :where(h1, h2, h3), .sheet-dialog :where(h1, h2, h3) {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  margin: 0;
}
.sheet .fa, .sheet-dialog .fa {
  filter: none;
}
.sheet :focus-visible, .sheet-dialog :focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.sheet ::selection, .sheet-dialog ::selection {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

/** shared building blocks of the sheet pages **/
.sheet .sheet-section, .sheet-dialog .sheet-section {
  margin-bottom: 40px;
}
.sheet .sheet-title, .sheet-dialog .sheet-title {
  margin: 1em 0 6px;
  font-weight: 400;
  font-size: 30px;
}
.sheet .kicker, .sheet-dialog .kicker {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}
.sheet .colhead, .sheet-dialog .colhead {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-accent-300);
}
.sheet .cell, .sheet-dialog .cell {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-divider);
}
.sheet .abbr, .sheet-dialog .abbr {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent-700);
}
.sheet .num, .sheet-dialog .num {
  font-variant-numeric: tabular-nums;
}
.sheet .center, .sheet-dialog .center {
  text-align: center;
  justify-content: center;
}
.sheet .right, .sheet-dialog .right {
  text-align: right;
  justify-content: flex-end;
}
.sheet .muted, .sheet-dialog .muted {
  font-size: 13px;
  font-style: italic;
  color: var(--color-neutral-700);
}
.sheet .hint, .sheet-dialog .hint {
  font-size: 12px;
  color: var(--color-neutral-600);
}
.sheet .btn-outline, .sheet-dialog .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: none;
  color: var(--color-accent-800);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.sheet .btn-outline:hover, .sheet-dialog .btn-outline:hover {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}
.sheet .btn-outline .fa, .sheet-dialog .btn-outline .fa {
  font-size: 11px;
}

.sheet-action {
  grid-area: mnav;
  justify-self: end;
  align-self: center;
  position: relative;
  margin-right: 12px;
  display: flex;
  gap: 2em;
}

/** cards, tags, fields, rows and dialog contents – used by #narrate and #prepare **/
#narrate article {
  padding: 18px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#narrate .page-title {
  margin: 0 0 4px;
  font-size: 20px;
}
#narrate .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #222222;
  border: 1px solid #514545;
}
#narrate .card-title {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
}
#narrate .card-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0D8989;
}
#narrate .card-meta {
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #867D7D;
}
#narrate .cardTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#narrate .tag {
  flex: none;
  padding: 1px 9px;
  border-radius: 20px;
  font-size: 11px;
  white-space: nowrap;
  border: 1px solid #514545;
  color: #dddddd;
}
#narrate .tag.accent {
  border-color: #0D8989;
  background: #053737;
  color: #ffffff;
}
#narrate .tag.outline {
  border-color: #867D7D;
}
#narrate .tag.neutral {
  background: #373535;
}
#narrate .avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #373535;
  border: 1px solid #514545;
  color: #dddddd;
  font-size: 12px;
  font-weight: bold;
}
#narrate {
  /* labeled input fields */
}
#narrate .field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
#narrate .field label {
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: #867D7D;
}
#narrate .field input, #narrate .field textarea {
  width: 100%;
  background: #000000;
  border: 1px solid #514545;
  border-radius: 5px;
  color: #ffffff;
  padding: 5px 8px;
  font-size: 14px;
  font-family: inherit;
}
#narrate .field input:disabled, #narrate .field textarea:disabled {
  color: #dddddd;
  background: transparent;
}
#narrate .field input:focus, #narrate .field textarea:focus {
  outline: none;
  border-color: #0D8989;
}
#narrate .field textarea {
  resize: vertical;
  line-height: 1.4;
}
#narrate {
  /* member rows (fellowship page and member dialog) */
}
#narrate .memberList {
  margin: 0;
  padding: 0;
  list-style: none;
}
#narrate .memberRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #373535;
}
#narrate .memberName {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
#narrate .memberName div:first-child {
  font-size: 14px;
}
#narrate .iconBtn {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #867D7D;
  font-size: 13px;
  cursor: pointer;
  filter: none;
}
#narrate .iconBtn:hover {
  color: #ffffff;
  background: #373535;
}
#narrate {
  /* dialog contents */
}
#narrate .dlg-narrow {
  width: min(480px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#narrate .radioRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
#narrate .radioRow:hover {
  background: #373535;
}
#narrate .radioRow > span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
#narrate .radioRow input {
  accent-color: #0D8989;
}

:where(#prepare, .prepare-page) .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #222222;
  border: 1px solid #514545;
}
:where(#prepare, .prepare-page) .card-title {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
}
:where(#prepare, .prepare-page) .card-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0D8989;
}
:where(#prepare, .prepare-page) .card-meta {
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #867D7D;
}
:where(#prepare, .prepare-page) .cardTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
:where(#prepare, .prepare-page) .tag {
  flex: none;
  padding: 1px 9px;
  border-radius: 20px;
  font-size: 11px;
  white-space: nowrap;
  border: 1px solid #514545;
  color: #dddddd;
}
:where(#prepare, .prepare-page) .tag.accent {
  border-color: #0D8989;
  background: #053737;
  color: #ffffff;
}
:where(#prepare, .prepare-page) .tag.outline {
  border-color: #867D7D;
}
:where(#prepare, .prepare-page) .tag.neutral {
  background: #373535;
}
:where(#prepare, .prepare-page) .avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #373535;
  border: 1px solid #514545;
  color: #dddddd;
  font-size: 12px;
  font-weight: bold;
}
:where(#prepare, .prepare-page) {
  /* labeled input fields */
}
:where(#prepare, .prepare-page) .field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
:where(#prepare, .prepare-page) .field label {
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: #867D7D;
}
:where(#prepare, .prepare-page) .field input, :where(#prepare, .prepare-page) .field textarea {
  width: 100%;
  background: #000000;
  border: 1px solid #514545;
  border-radius: 5px;
  color: #ffffff;
  padding: 5px 8px;
  font-size: 14px;
  font-family: inherit;
}
:where(#prepare, .prepare-page) .field input:disabled, :where(#prepare, .prepare-page) .field textarea:disabled {
  color: #dddddd;
  background: transparent;
}
:where(#prepare, .prepare-page) .field input:focus, :where(#prepare, .prepare-page) .field textarea:focus {
  outline: none;
  border-color: #0D8989;
}
:where(#prepare, .prepare-page) .field textarea {
  resize: vertical;
  line-height: 1.4;
}
:where(#prepare, .prepare-page) {
  /* member rows (fellowship page and member dialog) */
}
:where(#prepare, .prepare-page) .memberList {
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(#prepare, .prepare-page) .memberRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #373535;
}
:where(#prepare, .prepare-page) .memberName {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
:where(#prepare, .prepare-page) .memberName div:first-child {
  font-size: 14px;
}
:where(#prepare, .prepare-page) .iconBtn {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #867D7D;
  font-size: 13px;
  cursor: pointer;
  filter: none;
}
:where(#prepare, .prepare-page) .iconBtn:hover {
  color: #ffffff;
  background: #373535;
}
:where(#prepare, .prepare-page) {
  /* dialog contents */
}
:where(#prepare, .prepare-page) .dlg-narrow {
  width: min(480px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
:where(#prepare, .prepare-page) .radioRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
:where(#prepare, .prepare-page) .radioRow:hover {
  background: #373535;
}
:where(#prepare, .prepare-page) .radioRow > span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
:where(#prepare, .prepare-page) .radioRow input {
  accent-color: #0D8989;
}
:where(#prepare, .prepare-page) {
  /* icon glyph of an .icon-xxx class (font awesome) without the drop shadow of .fa */
}
:where(#prepare, .prepare-page) .ico {
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-style: normal;
  line-height: 1;
}
:where(#prepare, .prepare-page) {
  /* scrolling content page */
}
:where(#prepare, .prepare-page) article.page {
  padding: 28px 32px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
:where(#prepare, .prepare-page) article.page > * {
  max-width: 1240px;
}
:where(#prepare, .prepare-page) {
  /* page header: kicker, editable title and tags */
}
:where(#prepare, .prepare-page) .pageHead {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
:where(#prepare, .prepare-page) .titleRow {
  display: flex;
  align-items: center;
  gap: 10px;
}
:where(#prepare, .prepare-page) .titleInput {
  width: 100%;
  max-width: 760px;
  margin: 0;
  padding: 2px 0 6px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 28px;
  font-weight: 500;
  outline: none;
}
:where(#prepare, .prepare-page) .titleInput:hover {
  border-bottom-color: #514545;
}
:where(#prepare, .prepare-page) .titleInput:focus {
  border-bottom-color: #0D8989;
}
:where(#prepare, .prepare-page) .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
:where(#prepare, .prepare-page) .tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
:where(#prepare, .prepare-page) .tags .ico {
  font-size: 10px;
}
:where(#prepare, .prepare-page) {
  /* two columns of cards, collapsing to one on narrow screens */
}
:where(#prepare, .prepare-page) .columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  align-items: start;
}
:where(#prepare, .prepare-page) .column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
:where(#prepare, .prepare-page) .cardHead {
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(#prepare, .prepare-page) .cardHead .push {
  margin-left: auto;
}
:where(#prepare, .prepare-page) .card-title {
  font-weight: 500;
}
:where(#prepare, .prepare-page) {
  /* fieldsets used as input groups and cards */
}
:where(#prepare, .prepare-page) fieldset.card {
  margin: 0;
}
:where(#prepare, .prepare-page) .fieldGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 14px;
}
:where(#prepare, .prepare-page) .field select {
  width: 100%;
  background: #000000;
  border: 1px solid #514545;
  border-radius: 5px;
  color: #ffffff;
  padding: 5px 8px;
  font-size: 14px;
  font-family: inherit;
}
:where(#prepare, .prepare-page) {
  /* ghost button: text with icon, no frame */
}
:where(#prepare, .prepare-page) .textBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0D8989;
  font-size: 13px;
  cursor: pointer;
}
:where(#prepare, .prepare-page) .textBtn:hover {
  background: rgba(13, 137, 137, 0.2);
  color: #ffffff;
}
:where(#prepare, .prepare-page) .textBtn.muted {
  color: #999999;
}
:where(#prepare, .prepare-page) .button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}
:where(#prepare, .prepare-page) .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
:where(#prepare, .prepare-page) {
  /* clickable list rows inside cards */
}
:where(#prepare, .prepare-page) .listRow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 9px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
:where(#prepare, .prepare-page) .listRow:hover {
  background: rgba(255, 255, 255, 0.06);
}
:where(#prepare, .prepare-page) .ellipsis {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:where(#prepare, .prepare-page) {
  /* catalog groups with a grid of tile cards */
}
:where(#prepare, .prepare-page) .group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
:where(#prepare, .prepare-page) .group h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #999999;
}
:where(#prepare, .prepare-page) .tileGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-min, 300px), 1fr));
  gap: 14px;
}
:where(#prepare, .prepare-page) .tile {
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
}
:where(#prepare, .prepare-page) .tile:hover {
  border-color: #0D8989;
}
:where(#prepare, .prepare-page) .tile.row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
:where(#prepare, .prepare-page) .tileImg {
  display: grid;
  place-items: center;
  aspect-ratio: var(--tile-ratio, 16/7);
  background: radial-gradient(ellipse at 30% 20%, #373535, #000000 75%);
  color: #514545;
  font-size: 26px;
  overflow: hidden;
}
:where(#prepare, .prepare-page) .tileImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:where(#prepare, .prepare-page) .tileBody {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px 14px;
}
:where(#prepare, .prepare-page) .tileBody .name {
  font-size: 18px;
}
:where(#prepare, .prepare-page) .tileBody .teaser {
  margin: 4px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #dddddd;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
:where(#prepare, .prepare-page) {
  /* round character token */
}
:where(#prepare, .prepare-page) .token {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #373535;
  border: 1px solid #514545;
}
:where(#prepare, .prepare-page) {
  /* data table with fading row rules */
}
:where(#prepare, .prepare-page) .dataTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
:where(#prepare, .prepare-page) .dataTable th {
  padding: 6px 8px;
  border: 0;
  text-align: left;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999999;
}
:where(#prepare, .prepare-page) .dataTable td {
  padding: 6px 8px;
  border: 0;
  vertical-align: middle;
}
:where(#prepare, .prepare-page) .dataTable thead tr {
  background: linear-gradient(to right, transparent, #514545 48px, #514545 calc(100% - 48px), transparent) no-repeat bottom/100% 1px;
}
:where(#prepare, .prepare-page) .dataTable tbody tr {
  background: linear-gradient(to right, transparent, #373535 48px, #373535 calc(100% - 48px), transparent) no-repeat bottom/100% 1px;
}
:where(#prepare, .prepare-page) .dataTable tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
}
:where(#prepare, .prepare-page) {
  /* empty states and hints */
}
:where(#prepare, .prepare-page) .empty {
  margin: 0;
  padding: 0;
  color: #999999;
  font-style: italic;
}
:where(#prepare, .prepare-page) {
  /* image grid with upload tile */
}
:where(#prepare, .prepare-page) .imageGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
:where(#prepare, .prepare-page) .uploadTile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed #514545;
  border-radius: 8px;
  color: #0D8989;
  font-size: 12px;
  cursor: pointer;
}
:where(#prepare, .prepare-page) .uploadTile .ico {
  font-size: 20px;
}
:where(#prepare, .prepare-page) .uploadTile:hover {
  border-color: #0D8989;
  color: #ffffff;
}

@font-face {
  font-family: "EB Garamond";
  src: local("Garmond"), url("/static/fonts/EBGaramond-VariableFont_wght.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/static/fonts/fontawesome/fa-solid-900.woff2") format("woff2");
}
* {
  box-sizing: border-box;
  color-scheme: dark;
}
* pinch-zoom {
  touch-action: manipulation;
}

/***********************/
/**** GLOBAL STYLES ****/
/***********************/
body {
  height: 100svh;
  overflow: hidden;
  margin: 0;
  background: #000000;
  color: #ffffff;
  accent-color: rgb(13, 137, 137);
  font-family: Arial, Helvetica, sans-serif;
  text-decoration-thickness: 1px;
  user-select: none;
}

/** framework of application (header and main) **/
:root {
  --menu-width: 115px;
  --menu-height: 102px;
}

main {
  width: 100vw;
  height: 100vh;
}

header {
  grid-area: head;
}

.mnav {
  grid-area: mnav;
  padding-left: var(--menu-width);
}

aside {
  overflow-y: auto;
  scrollbar-width: none;
}
aside::-webkit-scrollbar {
  display: none;
}

.panel {
  grid-area: panel;
  padding: 8px;
  background: black url("images/background-light.png");
}

section {
  display: contents;
}

article {
  grid-area: main;
  position: relative;
  overflow-y: auto;
  scrollbar-width: none;
}
article::-webkit-scrollbar {
  display: none;
}

fieldset {
  border: none;
  padding: unset;
}

menu {
  list-style-type: none;
  padding-inline-start: 0;
}
menu.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

h1 {
  margin-block: 0;
}

a {
  color: inherit;
  text-decoration: underline rgb(13, 137, 137) dashed;
  font-weight: bold;
  cursor: help;
}

/***************************/
/**** FONTAWESOME ICONS ****/
/***************************/
.icon-bars::before {
  content: "\f0c9";
}

.icon-home::before {
  content: "\f015";
}

.icon-rules::before {
  content: "\f518";
}

.icon-advt::before {
  content: "\f044";
}

.icon-hero::before {
  content: "\f2bb";
}

.icon-game::before {
  content: "\f70e";
}

.icon-fshp::before {
  content: "\e533";
}

.icon-play::before {
  content: "\f04b";
}

.icon-star::before {
  content: "\f005";
}

.icon-graduation-cap::before {
  content: "\f19d";
}

.icon-list::before {
  content: "\f03a";
}

.icon-circle-play::before {
  content: "\f144";
}

.icon-chess-rook::before {
  content: "\f447";
}

.icon-hand::before {
  content: "\f256";
}

.icon-dice::before {
  content: "\f522";
}

.icon-plus::before {
  content: "+";
}

.icon-brands::before {
  content: "\f2b4";
}

.icon-right-to-bracket::before {
  content: "\f2f6";
}

.icon-right-from-bracket::before {
  content: "\f2f5";
}

.icon-pen::before {
  content: "\f304";
}

.icon-arrow-up::before {
  content: "\f062";
}

.icon-arrow-left::before {
  content: "\f060";
}

.icon-info::before {
  content: "\f05a";
}

.icon-check::before {
  content: "\f00c";
}

.icon-xmark::before {
  content: "\f00d";
}

.icon-circle-xmark::before {
  content: "\f057";
}

.icon-square-xmark::before {
  content: "\f2d3";
}

.icon-trash::before {
  content: "\f1f8";
}

.icon-trash-arrow-up::before {
  content: "\f829";
}

.icon-chevron-right::before {
  content: "\f054";
}

.icon-chevron-down::before {
  content: "\f078";
}

.icon-grip-vertical::before {
  content: "\f58e";
}

.icon-image::before {
  content: "\f03e";
}

.icon-minus::before {
  content: "\f068";
}

.icon-scissors::before {
  content: "\f0c4";
}

.icon-refresh::before {
  content: "\f021";
}

.icon-person::before {
  content: "\f183";
}

.icon-clipboard-user::before {
  content: "\f7f3";
}

.icon-map::before {
  content: "\f279";
}

.icon-deploy::before {
  content: "\e538";
}

.icon-dungeon::before {
  content: "\f6d9";
}

.icon-angles-left::before {
  content: "\f100";
}

.icon-angles-right::before {
  content: "\f101";
}

.icon-display::before {
  content: "\e163";
}

.icon-enter::before {
  content: "\e538";
}

.icon-exit::before {
  content: "\e552";
}

.icon-check::before {
  content: "\f00c";
}

.icon-flag::before {
  content: "\f024";
}

.icon-edit::before {
  content: "\f044";
}

.icon-upload::before {
  content: "\f093";
}

.icon-location-dot::before {
  content: "\f3c5";
}

.icon-user-plus::before {
  content: "\f234";
}

.icon-user-minus::before {
  content: "\f503";
}

.icon-lock::before {
  content: "\f023";
}

.icon-magnifying-glass::before {
  content: "\f002";
}

.icon-person-plus::before {
  content: "\e541";
}

.icon-scroll::before {
  content: "\f70e";
}

.icon-list-ol::before {
  content: "\f0cb";
}

.icon-skull::before {
  content: "\f54c";
}

.icon-coins::before {
  content: "\f51e";
}

.icon-circle-question::before {
  content: "\f059";
}

.icon-filter::before {
  content: "\f0b0";
}

.icon-layer-group::before {
  content: "\f5fd";
}

.icon-tree::before {
  content: "\f1bb";
}

.icon-circle-user::before {
  content: "\f2bd";
}

.icon-users::before {
  content: "\f0c0";
}

.icon-arrow-right::before {
  content: "\f061";
}

.icon-copy::before {
  content: "\f0c5";
}

.icon-images::before {
  content: "\f302";
}

.icon-compass::before {
  content: "\f14e";
}

.icon-book::before {
  content: "\f02d";
}

.icon-leaf::before {
  content: "\f06c";
}

.icon-magnet::before {
  content: "\f076";
}

.icon-table-cells::before {
  content: "\f00a";
}

.icon-arrow-pointer::before {
  content: "\f245";
}

.icon-magnifying-glass-plus::before {
  content: "\f00e";
}

.icon-magnifying-glass-minus::before {
  content: "\f010";
}

.icon-char-new::before {
  content: "\e541";
}

.fa {
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.65));
}

/*Functional Styling*/
@media (pointer: coarse), (hover: none) {
  [title] {
    position: relative;
    display: inline-flex;
    /*justify-content: center*/
  }
  [title]:focus::after {
    content: attr(title);
    position: absolute;
    top: 90%;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid;
    width: fit-content;
    padding: 3px;
    font-size: 10px;
  }
}
/************************/
/**** GENERAL styles ****/
/************************/
.juxta {
  display: flex;
}

.grid-content {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

/*ToDo:  Conditionally hiding the scrollbar (https://blog.logrocket.com/hide-scrollbar-without-impacting-scrolling-css/) */
dialog {
  background-color: #DDD;
  border-radius: 1em;
  border: none;
  padding: 0;
}

a, p, button, input, select, textarea {
  margin: 0;
  padding-top: 4px;
  font-size: 110%;
}

textarea {
  color: #ffffff;
  background-color: #222222;
  border-bottom: 2px solid #867D7D;
  font-size: 110%;
}

label {
  color: #dddddd;
}

img {
  -webkit-touch-callout: none;
}

input, select {
  background: black;
  color: #ffffff;
  -webkit-user-select: text;
  overflow: visible;
  line-height: normal;
}

output {
  text-align: right;
}

input:disabled {
  color: #ccc;
}

input.placeholder {
  color: grey;
}

input[type=file] {
  display: none;
}

.text input[type=text]:hover {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.text input[type=text]:focus {
  box-shadow: 0 0 0 3px #80a62d;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
  text-align: right;
}

.text input[type=submit]:hover, .text-rounded input[type=submit]:hover, .text input[type=submit]:focus, .text-rounded input[type=submit]:focus {
  background-position: center -30px;
}

.text-button:hover {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.button {
  position: relative;
  border: 0;
  outline: none;
  background-color: transparent;
  background-size: auto 37px;
  height: 37px;
  width: max-content;
  border-radius: 45px;
  cursor: pointer;
}

.button {
  position: relative;
  display: inline-block;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  user-select: none;
}

.button:hover {
  filter: brightness(200%);
  cursor: pointer;
}

.button-circle {
  position: relative;
  background-color: #373535;
  border: 2px solid #867D7D;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.65));
  width: 36px;
  height: 36px;
  border-radius: 45px;
  color: #ffffff;
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
}

.button-icon {
  width: 20px;
  height: 20px;
}

.button-label {
  color: #ffffff;
  font-weight: bold;
  padding-left: 40px;
  padding-right: 10px;
  display: block;
}

.text {
  /*padding: 0*/
  /*position: relative*/
  /*background: colors.$grey-2*/
  color: #ffffff;
  /*vertical-align: baseline*/
  width: 100%;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid #514545;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
  padding-top: 4px \9 ;
}

.button:disabled {
  filter: contrast(50%);
}

.button:hover, .button:focus {
  filter: brightness(150%);
  box-shadow: 0 0 30px 10px grey;
}

.button:active {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 1px 1px 1px rgba(255, 255, 255, 0.5), inset 0 1px 2px rgba(0, 0, 0, 0.5);
  background: #777777 linear-gradient(45deg, #cccccc, #777777);
}

.button > img {
  pointer-events: none;
}

.button.close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
}

.close {
  position: absolute;
  right: 0;
  top: -8px;
  font-size: larger;
  color: lightgray;
}

.close:hover {
  color: lightcoral;
}

.miniButton {
  height: 30px;
  width: 42px;
  background-color: darkgrey;
  border: 2px outset lightgrey;
  padding: 0;
  justify-self: center;
}

.minimenu {
  position: absolute;
  right: 0;
  top: 0;
  height: 20px;
  width: 16px;
  cursor: pointer;
  background: #444;
  color: #AAA;
  padding: 0;
}

.dropzone:hover {
  filter: brightness(1.5);
}

.hint {
  cursor: help;
}

.invisible {
  display: none;
}

.button.icon {
  height: 50px;
  width: 50px;
}

table {
  table-layout: initial;
  width: 100%;
  /* border: 1px solid dimgrey */
  border-collapse: collapse;
}

th, td {
  border: 1px solid grey;
  padding: 3px;
}

.headerCol {
  text-align: left;
  font-size: larger;
  font-weight: bold;
  padding: 1em 12px 8px;
  border: 0;
}

.numberCol {
  text-align: right;
}

blockquote {
  font-style: italic;
}

/**** GENERAL icons anywhere on the page **** */
.clickable {
  cursor: pointer;
}

.icon {
  /* display: inline-block */
  position: relative;
  margin: 0;
}

.icon img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.icon figcaption {
  position: absolute;
  left: 15px;
  top: 40px;
  width: 3ch;
  text-align: center;
  margin: 0;
  background: #555;
  font-size: small;
}

.icon a {
  position: absolute;
  left: -5px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  font-size: 80%;
}

.icon p {
  position: relative;
  bottom: 8px;
  width: 55px;
  /* height: 15px */
  font-size: 80%;
  text-align: center;
  overflow: hidden;
}

.icon.spanRows {
  grid-row: 1/span 5;
}

figure > img {
  pointer-events: none;
}

.doublespan {
  grid-column: span 2;
  white-space: nowrap;
}

.triplespan {
  grid-column: span 3;
}

.quadspan {
  grid-column: span 4;
}

.fullspan {
  grid-column: 1/-1;
}

.centered {
  text-align: center !important;
}

.hidden {
  display: none;
}

/**** combined selectors not supported by svelte **** */
.actdata {
  display: grid;
  justify-content: center;
  grid-gap: 5px;
  margin: 5px;
  font-size: 1.2em;
}

.masterView .actdata {
  grid-template-columns: 3fr 2fr 4ch;
}

.playerView .actdata {
  grid-template-columns: 3fr 2fr;
}

.affil-fellow {
  background-color: #0000ff;
}

.affil-friend {
  background-color: #1f991f;
}

.affil-neutral {
  background-color: #999999;
}

.affil-enemy.rank1 {
  background-color: #e6e60b;
}

.affil-enemy.rank2 {
  background-color: #e6780b;
}

.affil-enemy.rank3 {
  background-color: #cc1414;
}

.affil-enemy.rank {
  background-color: #7e17e6;
}

.areaEffect {
  position: absolute;
  border-radius: 50%;
  opacity: 70%;
}

/**** MAP arrows **** */
.hole {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  --rect-size: 75px;
  /* can cut through all this * */
  background-color: rgba(10, 161, 232, 0.3);
  backdrop-filter: blur(3px);
  justify-content: center;
}

/**** common TIMELINE styles **** */
.tick-time {
  grid-column: 1;
}

.tick-char {
  justify-self: center;
}

.tick-actor {
  display: inline-block;
  position: relative;
  grid-column: 2;
  grid-row: span 3;
}

.tick-double {
  grid-column: 3/span 2;
}

.review {
  grid-row: span 3;
}

.playerView .review {
  display: none;
}

details {
  max-width: 500px;
  padding: 16px 8px;
}

summary {
  display: flex;
  font-size: 20px;
  font-weight: bold;
}

summary + div {
  padding: 10px 0;
}

summary:hover {
  cursor: pointer;
}

summary::after {
  content: "\f059";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.65));
  padding-left: 8px;
}

details[open] > summary::after {
  content: "\f078";
}

summary.incident::after {
  content: "\f05a";
  color: #dddddd;
}

details[open] > summary.incident::after {
  content: "\f00d";
  color: #dddddd;
}

summary.incident.dark::after {
  color: #867D7D;
}

details[open] > summary.incident.dark::after {
  color: #867D7D;
}

details .explanation {
  margin: 8px;
}

/*Info-Box* */
.infobox {
  display: flex;
  flex-flow: column nowrap;
  background-color: #053737;
  border-radius: 15px;
  padding: 20px 20px 0 20px;
  margin: 15px 0;
}

.infobox details {
  padding: 0 0 15px 0;
}

.infobox summary {
  font-size: 18px;
  font-weight: bold;
}

.tabContent,
#gearPanel,
.combatPanel {
  padding: 5px;
  background-color: #867D7D;
  /* border: 2px solid colors.$grey-1 * */
}

.tabContent tr:nth-child(even) td,
#gearPanel tr:nth-child(even) td {
  background-color: #222222;
}

.tabContent tr:nth-child(odd) td,
#gearPanel tr:nth-child(odd) td {
  background-color: #373535;
}

.tabContent thead,
#gearPanel thead,
.combatPanel thead {
  background-color: #085252;
  font-style: italic;
}

.tabContent table, .tabContent th, .tabContent td,
#gearPanel table, #gearPanel th, #gearPanel td,
.combatPanel table, #gearPanel th, #gearPanel td {
  border: none;
  outline: none;
  border-collapse: collapse;
}

.tabContent td,
#gearPanel td,
.combatPanel td {
  padding: 5px 5px;
}

.tabContent h3,
#gearPanel h3,
.combatPanel h3 {
  background-color: #053737;
  padding: 5px 0;
  margin-bottom: 0;
  text-align: center;
  border-radius: 15px 15px 0 0;
}

.combatPanel {
  display: flex;
  flex-flow: column nowrap;
  gap: 20px;
  padding: 20px 10px;
}

.combatPanel .activityarea {
  position: relative;
  border-radius: 15px;
  border: 2px solid #053737;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  break-inside: avoid;
  background-color: #222222;
  padding: 0;
}

.combatPanel .activityarea-inner {
  padding: 20px 10px;
}

.combatPanel .activityarea h3 {
  margin: 0;
}

/***********************/
/**** ACTION COLOR STYLES ****/
/***********************/
/*impactHue =hurt: 0, harm: 28, nerf: 56, heal: 120, save: 150, buff: 180, abil: 240, envm: 270, move: 300, chrg: 330}*/
.hurt {
  --hue: 0;
}

.harm {
  --hue: 28;
}

.nerf {
  --hue: 56;
}

.heal {
  --hue: 120;
}

.save {
  --hue: 160;
}

.buff {
  --hue: 200;
}

.envm {
  --hue: 240;
}

.move {
  --hue: 280;
}

.chrg {
  --hue: 320;
}

.cost {
  background-color: hsl(var(--hue), 80%, 20%);
}

.cost0 {
  background-color: hsl(var(--hue), 80%, 10%);
}

.cost5 {
  background-color: hsl(var(--hue), 75%, 15%);
}

.cost10 {
  background-color: hsl(var(--hue), 70%, 20%);
}

.cost15 {
  background-color: hsl(var(--hue), 65%, 25%);
}

.cost20 {
  background-color: hsl(var(--hue), 60%, 30%);
}

.cost25 {
  background-color: hsl(var(--hue), 55%, 35%);
}

.cost30 {
  background-color: hsl(var(--hue), 50%, 40%);
}

/****************************/
/**** DIALOG FRAMEWORK   ****/
/****************************/
dialog.dlg {
  padding: 0;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #252626;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
}

dialog.dlg::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

dialog.dlg[open] {
  animation: dialog-zoom 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}

dialog.dlg[open]::backdrop {
  animation: dialog-fade 0.2s ease-out;
}

@keyframes dialog-zoom {
  from {
    transform: scale(0.95);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes dialog-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/** header: title left, single close affordance right **/
.dlg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 13px;
  border-bottom: 1px solid #0D8989;
}

.dlg-head h3 {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  white-space: nowrap;
}

.dlg-close {
  border: 0;
  margin: 0;
  padding: 4px;
  background: none;
  border-radius: 4px;
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: #867D7D;
  cursor: pointer;
}

.dlg-close::before {
  content: "\f00d";
}

.dlg-close:hover {
  color: #ffffff;
  background-color: #373535;
}

.dlg-close:focus-visible {
  outline: 2px solid #0D8989;
  outline-offset: 2px;
}

/** body: the only scrolling region of the dialog **/
.dlg-body {
  padding: 18px 20px 22px;
  max-height: 70vh;
  overflow-y: auto;
  color: #dddddd;
  font-size: 14px;
  line-height: 1.6;
}

/** footer: fixed action order â€” messages left, secondary, then primary **/
.dlg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 20px;
  background-color: #222222;
  border-top: 1px solid #373535;
  list-style-type: none;
}

.dlg-foot li {
  display: contents;
}

.dlg-foot .message {
  margin-right: auto;
  padding: 0;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

.dlg-foot .message.warning {
  color: #f2c94c;
}

.dlg-foot .message.error {
  color: #eb5757;
}

/**********************************************/
/**** PRIMARY AND SECONDARY ACTION BUTTONS ****/
/**********************************************/
.button-primary {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 34px;
  padding: 8px;
  border: 0;
  border-radius: 45px;
  background-image: linear-gradient(180deg, #0D8989, #053737 44%);
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.65));
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}

.button-primary:hover {
  background-image: linear-gradient(180deg, #0D8989, #053737 75%);
}

.button-primary:active {
  background-image: linear-gradient(180deg, #085252, #053737 75%);
}

.button-primary:focus-visible {
  outline: 2px solid #0D8989;
  outline-offset: 2px;
}

.button-primary:disabled {
  filter: contrast(50%);
  cursor: default;
}

/** grey variant — what .button-primary used to be by default **/
.button-primary.neutral {
  background-image: linear-gradient(180deg, #867D7D, #514545 44%);
}

.button-primary.neutral:hover {
  background-image: linear-gradient(180deg, #867D7D, #514545 75%);
}

.button-primary.neutral:active {
  background-image: linear-gradient(180deg, #514545, #373535 75%);
}

/** .petrol is now the default — kept so existing markup does not break **/
.button-primary.petrol {
  background-image: linear-gradient(180deg, #0D8989, #053737 44%);
}

.button-primary.petrol:hover {
  background-image: linear-gradient(180deg, #0D8989, #053737 75%);
}

/** icon badge variant: 30px circle at the left edge, glyph from the class name **/
.button-primary-circle {
  padding: 8px 18px 8px 45px;
  font-size: 15px;
}

.button-primary-circle::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border-radius: 45px;
  background-color: #053737;
  border: 2px solid #0D8989;
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 13px;
}

.button-primary:hover.button-primary-circle::before {
  background-color: #085252;
}

.button-primary.neutral .button-primary-circle::before,
.button-primary-circle.neutral::before {
  background-color: #373535;
  border: 2px solid #867D7D;
}

.button-primary-circle.neutral:hover::before {
  background-color: #514545;
}

/** secondary action â€” promoted out of RegisterDialog so every dialog shares it **/
.button-secondary {
  background: none;
  border: 1px solid #555;
  color: #ffffff;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 14px;
  cursor: pointer;
}

.button-secondary:hover {
  border-color: #ffffff;
}

.button-secondary:focus-visible {
  outline: 2px solid #0D8989;
  outline-offset: 2px;
}