@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/mulish-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/mulish-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/mulish-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../vendor/fonts/mulish-latin-800-normal.woff2") format("woff2");
}

:root {
  --zj-ink: #212529;
  --zj-muted: #6c757d;
  --zj-blue: #0d6efd;
  --zj-border: #dee2e6;
  --zj-soft: #f7f8fa;
  --zj-nav-height: 58px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding-top: calc(var(--zj-nav-height) + 1.25rem);
  color: var(--zj-ink);
  background: #fff;
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

a {
  text-underline-offset: 0.15em;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1050;
  min-height: var(--zj-nav-height);
  color: #fff;
  background: #212529;
  box-shadow: 0 1px 0 rgb(255 255 255 / 8%);
}

.site-nav__inner {
  min-height: var(--zj-nav-height);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand:hover {
  color: #fff;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 0.4rem;
  color: #fff;
  background: transparent;
  font-size: 1.05rem;
}

.site-nav__link,
.site-nav__auth {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.35rem;
  padding: 0.45rem 0.8rem;
  color: rgb(255 255 255 / 72%);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__auth:hover,
.site-nav__link[aria-current="page"] {
  color: #fff;
  background: rgb(255 255 255 / 10%);
}

.site-nav__auth[data-authenticated="true"]::before {
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: #75b798;
  box-shadow: 0 0 0 2px rgb(117 183 152 / 18%);
  content: "";
}

.page-kicker {
  margin: 0 0 0.1rem;
  color: var(--zj-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
  border: 1px solid #badbcc;
  border-radius: 0.5rem;
  padding: 0.65rem 0.8rem;
  background: #d1e7dd;
}

.admin-toolbar[hidden] {
  display: none;
}

.admin-toolbar .btn {
  white-space: nowrap;
}

.editor-default-language {
  width: 9.5rem;
  margin: 0;
}

.resume-editor-chrome.is-sticky,
.deck-editor-chrome.is-sticky {
  position: sticky;
  top: calc(var(--zj-nav-height) + 0.5rem);
  z-index: 1040;
  border-radius: 0.6rem;
  padding-top: 0.05rem;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 0.7rem 1.4rem rgb(33 37 41 / 8%);
  backdrop-filter: blur(8px);
}

.resume-editor-chrome.is-sticky .admin-toolbar,
.deck-editor-chrome.is-sticky .admin-toolbar {
  margin-top: 0;
}

.resume-editor-chrome.is-sticky .editor-toolbar,
.deck-editor-chrome.is-sticky .editor-toolbar {
  margin-bottom: 0;
}

.deck-editor-chrome.is-sticky {
  margin-bottom: 1rem;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.45rem 0 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  padding: 0.55rem;
  background: #fff;
  box-shadow: 0 0.2rem 0.8rem rgb(33 37 41 / 6%);
}

.editor-toolbar[hidden] {
  display: none;
}

.editor-toolbar__block {
  width: 8rem;
  margin: 0;
}

.editor-toolbar__spacing {
  width: 6.75rem;
  margin: 0;
}

.editor-toolbar__highlight {
  width: 7rem;
  margin: 0;
}

.editor-toolbar__history {
  margin-left: auto;
}

.editor-toolbar__inline-form {
  display: grid;
  width: 100%;
  flex: 0 0 100%;
  gap: 0.5rem;
  border-top: 1px solid var(--zj-border);
  padding-top: 0.55rem;
}

.editor-toolbar__link-form {
  grid-template-columns: minmax(14rem, 1fr) auto auto auto;
}

.editor-toolbar__image-form {
  grid-template-columns: minmax(14rem, 2fr) minmax(10rem, 1fr) auto auto;
}

.editor-toolbar.has-rich-media .editor-toolbar__image-form {
  grid-template-columns: 8rem minmax(12rem, 2fr) minmax(9rem, 1fr) minmax(10rem, 1fr) minmax(12rem, 1.25fr) auto auto auto;
}

.editor-toolbar__inline-form[hidden] {
  display: none;
}

.site-dialog {
  width: min(92vw, 470px);
  border: 0;
  border-radius: 0.8rem;
  padding: 0;
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 24%);
}

.site-dialog::backdrop {
  background: rgb(13 18 28 / 58%);
  backdrop-filter: blur(3px);
}

.site-dialog__body {
  padding: 1.5rem;
}

.site-dialog__icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  color: #0a58ca;
  background: #e7f1ff;
}

.site-dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.site-dialog p {
  color: #495057;
}

.site-dialog__note {
  border-left: 3px solid #ffc107;
  padding-left: 0.75rem;
  font-size: 0.84rem;
}

.site-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.resume-entry-dialog {
  width: min(94vw, 720px);
}

.resume-entry-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.resume-entry-form__field {
  display: grid;
  gap: 0.3rem;
  color: #495057;
  font-size: 0.82rem;
  font-weight: 600;
}

.resume-entry-form__field--wide {
  grid-column: 1 / -1;
}

.resume-entry-form__field[hidden] {
  display: none;
}

.site-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  max-width: min(380px, calc(100vw - 2rem));
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #212529;
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 22%);
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: 160ms ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  margin-top: 2.25rem;
  padding-bottom: 1.5rem;
  color: var(--zj-muted);
  text-align: center;
  font-size: 0.82rem;
}

.site-footer::before {
  display: block;
  margin-bottom: 1rem;
  border-top: 1px solid var(--zj-border);
  content: "";
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.25rem;
  font-size: 0.76rem;
}

.loading-panel {
  display: grid;
  min-height: 48vh;
  place-items: center;
  color: var(--zj-muted);
}

[contenteditable="true"] {
  outline: 2px dashed rgb(13 110 253 / 45%);
  outline-offset: 0.5rem;
}

.editor-text-body {
  font-size: 1em !important;
}

.editor-text-fs-title {
  font-size: 2.5em !important;
  line-height: 1.08 !important;
}

.editor-text-h2 {
  font-size: 1.6em !important;
}

.editor-text-h3 {
  font-size: 1.3em !important;
}

.editor-text-fs-1 {
  font-size: 0.95em !important;
}

.editor-text-small,
.editor-text-fs-3 {
  font-size: 0.667em !important;
  line-height: 1.35 !important;
}

.editor-text-tiny,
.editor-text-fs-4 {
  font-size: 0.571em !important;
  line-height: 1.35 !important;
}

.editor-text-fs-5 {
  font-size: 0.476em !important;
  line-height: 1.4 !important;
}

.editor-text-fs-6 {
  font-size: 0.381em !important;
  line-height: 1.4 !important;
}

.editor-toolbar__font-size {
  width: auto;
  flex: 0 0 auto;
}

.editor-toolbar__font-size .form-control {
  width: 4.25rem;
  min-width: 4.25rem;
  padding-right: 0.25rem;
  padding-left: 0.25rem;
  text-align: center;
}

.editor-toolbar__font-size .input-group-text {
  padding-right: 0.4rem;
  padding-left: 0.4rem;
}

.editor-media-selected {
  outline: 4px solid #0d6efd !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgb(13 110 253 / 16%), 0 0.45rem 1.1rem rgb(13 110 253 / 24%) !important;
}

.editor-media-caption {
  display: block;
  margin: 0.55rem 0.1rem 0;
  color: var(--zj-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

div.editor-media-selected,
figure.editor-media-selected {
  position: relative !important;
}

div.editor-media-selected::after,
figure.editor-media-selected::after {
  position: absolute;
  z-index: 5;
  top: 0.35rem;
  right: 0.35rem;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  color: #fff;
  background: #0d6efd;
  box-shadow: 0 0.2rem 0.55rem rgb(0 0 0 / 22%);
  content: "✓ Selected";
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  pointer-events: none;
}

@media (max-width: 767px) {
  :root {
    --zj-nav-height: 58px;
  }

  .site-nav__inner {
    position: relative;
    min-height: var(--zj-nav-height);
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .site-brand {
    width: auto;
  }

  .site-nav__toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .site-nav__links {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0.75rem;
    left: 0.75rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid rgb(255 255 255 / 12%);
    border-radius: 0 0 0.55rem 0.55rem;
    padding: 0.55rem;
    background: #212529;
    box-shadow: 0 0.8rem 1.4rem rgb(0 0 0 / 24%);
  }

  .site-nav__inner.is-open .site-nav__links {
    display: flex;
  }

  .site-nav__link,
  .site-nav__auth {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    padding: 0.5rem 0.7rem;
    font-size: 0.88rem;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .editor-toolbar {
    flex-wrap: wrap;
  }

  .editor-toolbar__history {
    margin-left: 0;
  }

  .editor-toolbar__inline-form {
    grid-template-columns: 1fr;
  }

  .resume-entry-form__grid {
    grid-template-columns: 1fr;
  }

  .resume-entry-form__field--wide {
    grid-column: auto;
  }
}

@media print {
  body {
    padding-top: 0;
  }

  .site-nav,
  .admin-toolbar,
  .editor-toolbar,
  .resume-editor-chrome,
  .site-dialog,
  .site-footer,
  .site-toast {
    display: none !important;
  }
}
