/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  background: #f6f8fb;
  color: #172033;
  font-family: Arial, sans-serif;
}

body[data-layout="dashboard"] {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f8fafc;
  color: #0f172a;
}

body[data-layout="dashboard"] [data-dashboard-sidebar] {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 18rem;
  border-right: 1px solid #e2e8f0;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

body[data-layout="dashboard"] [data-dashboard-sidebar].translate-x-0 {
  transform: translateX(0);
}

body[data-layout="dashboard"] [data-dashboard-overlay] {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.5);
}

body[data-layout="dashboard"] [data-dashboard-overlay].hidden {
  display: none;
}

body[data-layout="dashboard"] [data-dashboard-frame] {
  min-width: 0;
  width: 100%;
}

body[data-layout="dashboard"] [data-dashboard-topbar] {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 4rem;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

body[data-layout="dashboard"] [data-dashboard-main] {
  min-width: 0;
  width: 100%;
  min-height: calc(100vh - 4rem);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  body[data-layout="dashboard"] [data-dashboard-sidebar] {
    transform: translateX(0) !important;
  }

  body[data-layout="dashboard"] [data-dashboard-overlay] {
    display: none !important;
  }

  body[data-layout="dashboard"] [data-dashboard-frame] {
    padding-left: 18rem;
    width: 100%;
    box-sizing: border-box;
  }
}

.bg-blue-600 {
  background-color: #2563eb;
}

.hover\:bg-blue-500:hover {
  background-color: #3b82f6;
}

.text-white {
  color: #fff;
}

.mari-home-shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100dvh - var(--site-header-height, 73px));
  margin: 0 calc(50% - 50vw) 0;
  padding: 22px 24px 0;
  background: #000;
}

.mari-home-intro {
  display: flex;
  align-items: center;
  align-self: start;
  padding: 18px 10px 18px 8px;
  color: #fff;
}

.mari-home-intro__content {
  width: 100%;
}

.mari-home-intro h2 {
  margin: 0;
  max-width: 320px;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

.mari-home-intro p {
  margin: 12px 0 0;
  max-width: 290px;
  padding-left: 14px;
  border-left: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.58);
  font-size: 15px;
  line-height: 1.45;
}

.mari-home-seas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  max-width: 320px;
}

.mari-home-sea {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mari-home-sea:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
}

.mari-home-sea.is-active {
  background: rgba(255,255,255,0.09);
}

.mari-home-sea strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.mari-home-sea span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,0.62);
}

.mari-home-sea--salute:hover {
  border-color: rgba(0,180,216,0.7);
}

.mari-home-sea--salute.is-active {
  border-color: rgba(0,180,216,0.7);
}

.mari-home-sea--lavoro:hover {
  border-color: rgba(42,157,143,0.7);
}

.mari-home-sea--lavoro.is-active {
  border-color: rgba(42,157,143,0.7);
}

.mari-home-sea--risorse:hover {
  border-color: rgba(230,57,70,0.7);
}

.mari-home-sea--risorse.is-active {
  border-color: rgba(230,57,70,0.7);
}

.mari-home-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--site-header-height, 73px) - 12px);
  height: calc(100dvh - var(--site-header-height, 73px) - 12px);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #000;
  border-radius: 0;
}

.mari-home-image-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 700px);
  max-height: 100%;
}

.mari-home-image {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mari-home-image-links {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.mari-home-image-link {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 4px 16px rgba(0,0,0,0.85);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mari-home-image-link:hover,
.mari-home-image-link:focus-visible {
  transform: scale(1.04);
}

.mari-home-image-link strong {
  font-size: 22px;
  line-height: 1.08;
}

.mari-home-image-link span {
  font-size: 10px;
  line-height: 1.2;
  color: rgba(255,255,255,0.78);
}

.mari-home-image-link--salute {
  top: 12%;
  left: 50%;
  width: 34%;
  transform: translateX(-50%);
}

.mari-home-image-link--lavoro {
  top: 28%;
  left: 50%;
  width: 56%;
  transform: translateX(-50%);
}

.mari-home-image-link--risorse {
  top: 48%;
  left: 50%;
  width: 50%;
  transform: translateX(-50%);
}

.mari-home-glow {
  position: absolute;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  filter: blur(24px);
  transform: scale(0.96);
}

.mari-home-glow--salute {
  top: 3%;
  left: 39.5%;
  width: 21%;
  height: 18%;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle, rgba(0,180,216,0.7) 0%, rgba(0,180,216,0.24) 48%, rgba(0,180,216,0) 78%);
}

.mari-home-glow--lavoro {
  top: 17%;
  left: 9%;
  width: 82%;
  height: 23%;
  border-radius: 22% / 36%;
  background: radial-gradient(circle, rgba(42,157,143,0.62) 0%, rgba(42,157,143,0.22) 46%, rgba(42,157,143,0) 80%);
}

.mari-home-glow--risorse {
  top: 44%;
  left: 16%;
  width: 68%;
  height: 42%;
  border-radius: 28% 28% 22% 22% / 26% 26% 18% 18%;
  background: radial-gradient(circle, rgba(230,57,70,0.56) 0%, rgba(230,57,70,0.2) 48%, rgba(230,57,70,0) 82%);
}

.mari-home-shell[data-current-sea="salute"] .mari-home-glow--salute,
.mari-home-shell[data-current-sea="lavoro"] .mari-home-glow--lavoro,
.mari-home-shell[data-current-sea="risorse"] .mari-home-glow--risorse,
.mari-home-shell:has(.mari-home-sea--salute:hover) .mari-home-glow--salute,
.mari-home-shell:has(.mari-home-sea--salute:focus-visible) .mari-home-glow--salute,
.mari-home-shell:has(.mari-home-image-link--salute:hover) .mari-home-glow--salute,
.mari-home-shell:has(.mari-home-image-link--salute:focus-visible) .mari-home-glow--salute,
.mari-home-shell:has(.mari-home-sea--lavoro:hover) .mari-home-glow--lavoro,
.mari-home-shell:has(.mari-home-sea--lavoro:focus-visible) .mari-home-glow--lavoro,
.mari-home-shell:has(.mari-home-image-link--lavoro:hover) .mari-home-glow--lavoro,
.mari-home-shell:has(.mari-home-image-link--lavoro:focus-visible) .mari-home-glow--lavoro,
.mari-home-shell:has(.mari-home-sea--risorse:hover) .mari-home-glow--risorse,
.mari-home-shell:has(.mari-home-sea--risorse:focus-visible) .mari-home-glow--risorse,
.mari-home-shell:has(.mari-home-image-link--risorse:hover) .mari-home-glow--risorse,
.mari-home-shell:has(.mari-home-image-link--risorse:focus-visible) .mari-home-glow--risorse {
  opacity: 1;
  transform: scale(1.04);
}

@media (max-width: 700px) {
  .mari-home-shell {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
    padding: 0 0 12px;
    min-height: auto;
  }

  .mari-home-intro {
    display: block;
    margin: 0;
    padding: 12px 12px 0;
    align-self: auto;
  }

  .mari-home-intro h2 {
    margin: 0;
    max-width: 320px;
    font-size: 21px;
    line-height: 1.08;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
  }

  .mari-home-intro p {
    margin: 8px 0 0;
    max-width: 280px;
    padding-left: 12px;
    border-left: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.56);
    font-size: 13px;
    line-height: 1.4;
  }

  .mari-home-seas {
    display: none;
  }

  .mari-home-sea {
    padding: 10px 12px;
  }

  .mari-home-sea strong {
    font-size: 14px;
  }

  .mari-home-sea span {
    font-size: 11px;
  }

  .mari-home-frame {
    min-height: auto;
    height: auto;
    margin-top: 0;
    padding: 0 8px 8px;
  }

  .mari-home-image-stage {
    width: min(100%, 440px);
  }

  .mari-home-image-link strong {
    font-size: 15px;
  }

  .mari-home-image-link span {
    font-size: 8px;
  }

  .mari-home-image-link--salute {
    top: 11%;
    width: 38%;
  }

  .mari-home-image-link--lavoro {
    top: 28%;
    width: 64%;
  }

  .mari-home-image-link--risorse {
    top: 48%;
    width: 58%;
  }

  .mari-home-image {
    width: 100%;
  }

  .mari-home-glow--salute {
    top: 5%;
    left: 38%;
    width: 24%;
    height: 21%;
  }

  .mari-home-glow--lavoro {
    top: 18%;
    left: 8%;
    width: 84%;
    height: 25%;
  }

  .mari-home-glow--risorse {
    top: 46%;
    left: 15%;
    width: 70%;
    height: 43%;
  }
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid #d9e0ea;
  background: rgba(255,255,255,0.95);
}

.home-nav a {
  color: #172033;
  text-decoration: none;
}

.home-nav__brand {
  font-size: 20px;
  font-weight: 800;
}

.home-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-nav__links a {
  padding: 8px 11px;
  border-radius: 8px;
  color: #475467;
  font-weight: 700;
}

.home-nav__links a:hover {
  background: #eef3f9;
  color: #172033;
}

.home-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 34px auto 56px;
}

.home-header {
  margin-bottom: 22px;
}

.home-header p {
  margin: 0 0 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-header h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.1;
}

.home-auth-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-auth-cta a {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-auth-cta__primary {
  background: #2563eb;
  color: #fff;
}

.home-auth-cta__primary:hover {
  background: #1d4ed8;
}

.home-auth-cta__secondary {
  border: 1px solid #d9e0ea;
  background: #fff;
  color: #344054;
}

.home-auth-cta__secondary:hover {
  border-color: #98a2b3;
  color: #172033;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.home-section-card {
  display: block;
  min-height: 128px;
  padding: 18px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(16,24,40,0.06);
}

.home-section-card:hover {
  border-color: #98a2b3;
}

.home-section-card span {
  display: block;
  margin-bottom: 26px;
  color: #2f6fed;
  font-size: 14px;
  font-weight: 800;
}

.home-section-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.prototype-list h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.prototype-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prototype-grid a {
  padding: 11px 12px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.prototype-grid a:hover {
  border-color: #98a2b3;
  color: #172033;
}

.dashboard-shell {
  min-height: calc(100vh - 137px);
  margin: -2rem calc(50% - 50vw);
  padding: 54px max(24px, calc((100vw - 1280px) / 2 + 32px));
  color: #0f172a;
}

.dashboard-shell--with-aside {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dashboard-main {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.dashboard-aside {
  position: sticky;
  top: 96px;
  z-index: 3;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.dashboard-aside__intro {
  margin-bottom: 16px;
}

.dashboard-aside__intro p {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-aside__intro h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.dashboard-aside__intro span {
  display: block;
  margin-top: 10px;
  color: #66788a;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-aside__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-aside__item {
  display: block;
  position: relative;
  z-index: 4;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.dashboard-aside__item strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.dashboard-aside__item span {
  display: block;
  margin-top: 4px;
  color: #66788a;
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-aside__item em {
  display: inline-block;
  margin-top: 8px;
  color: #8b5e34;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-aside__item.is-active {
  border-color: #2a9d8f;
  background: #edf8f5;
}

.dashboard-aside__item.is-locked {
  opacity: 0.72;
}

.dashboard-shell--work {
  background:
    radial-gradient(circle at 20% 10%, rgba(42, 157, 143, 0.18), transparent 30%),
    linear-gradient(180deg, #f7fbfa 0%, #edf7f4 100%);
}

.dashboard-shell--health {
  background:
    radial-gradient(circle at 22% 12%, rgba(0, 180, 216, 0.16), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #edf8fb 100%);
}

.dashboard-shell--resources {
  background:
    radial-gradient(circle at 18% 10%, rgba(42, 157, 143, 0.16), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(230, 57, 70, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fcfb 0%, #eef7f3 100%);
}

.dashboard-shell--public-events {
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 180, 216, 0.18), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(42, 157, 143, 0.14), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef7fb 100%);
}

.experiences-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.experiences-hero__intro {
  display: grid;
  gap: 8px;
}

.experiences-hero__intro p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.experiences-hero__intro h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.02;
}

.experiences-hero__intro span {
  max-width: 760px;
  color: #5f7284;
  font-size: 15px;
  line-height: 1.6;
}

.experiences-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.experiences-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.experiences-tab {
  border-radius: 999px;
  padding: 10px 15px;
  background: #e5e7eb;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.experiences-tab.is-active {
  background: #0f172a;
  color: #fff;
}

.experiences-filterbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #d7e2ea;
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
}

.experiences-filterbar__field {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  background: #fff;
}

.experiences-filterbar__field span {
  color: #64748b;
  font-size: 12px;
}

.experiences-filterbar__field strong {
  color: #172033;
  font-size: 14px;
}

.dashboard-header {
  max-width: 780px;
  margin-bottom: 28px;
}

.dashboard-header p {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-header span {
  display: block;
  max-width: 640px;
  margin-top: 14px;
  color: #536273;
  font-size: 17px;
  line-height: 1.55;
}

.dashboard-header--role {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-role-panel {
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid #d9e3ea;
  border-radius: 18px;
  background: #fff;
}

.dashboard-role-panel strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-role-panel span {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
}

.dashboard-role-panel em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.dashboard-role-form {
  display: block;
}

.dashboard-role-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.header-role-chip {
  display: none;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid #d9e3ea;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.header-role-chip strong {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-role-chip span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: #172033;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.dashboard-card:hover {
  border-color: #9fb0bf;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.dashboard-card--locked {
  opacity: 0.78;
  cursor: not-allowed;
}

.dashboard-card span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-card h2 {
  margin: 42px 0 10px;
  font-size: 28px;
  line-height: 1.05;
}

.dashboard-card p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.45;
}

.dashboard-card strong {
  width: fit-content;
  margin-top: 20px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
}

.dashboard-tabs-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.dashboard-tabs-panel__header {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.dashboard-tabs-panel__header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.dashboard-tabs-panel__header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-tab {
  min-width: 210px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #d7e2ea;
  border-radius: 8px 8px 0 0;
  background: #eef4fa;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.dashboard-tab strong {
  font-size: 14px;
}

.dashboard-tab span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-tab:hover {
  border-color: #9fb0bf;
  background: #f7fbff;
}

.dashboard-tab.is-active {
  background: #ffffff;
  border-bottom-color: #ffffff;
}

.projects-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.projects-intro-card {
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.projects-intro-card strong {
  display: block;
  margin: 0 0 8px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-intro-card p {
  margin: 0;
  color: #607284;
  font-size: 14px;
  line-height: 1.5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-showcase-card {
  overflow: hidden;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: #172033;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
}

.project-showcase-card:hover {
  border-color: #8bc5bd;
  box-shadow: 0 20px 48px rgba(42, 157, 143, 0.12);
}

.project-showcase-card__media {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px;
  background-size: cover;
  background-position: center;
}

.project-showcase-card__brand {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-showcase-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.project-showcase-card__content > span {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-showcase-card__content h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.project-showcase-card__content p {
  margin: 0;
  color: #607284;
  font-size: 15px;
  line-height: 1.55;
}

.project-showcase-card__targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-showcase-card__targets strong {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f5f2;
  color: #1f7066;
  font-size: 12px;
  font-weight: 800;
}

.project-showcase-card--body .project-showcase-card__media {
  background-image:
    linear-gradient(180deg, rgba(25, 52, 89, 0.1), rgba(25, 52, 89, 0.4)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.85), rgba(255,255,255,0) 18%),
    linear-gradient(135deg, #2f80ed 0%, #56ccf2 55%, #d7efff 100%);
}

.project-showcase-card--territory .project-showcase-card__media {
  background-image:
    linear-gradient(180deg, rgba(20, 43, 70, 0.08), rgba(20, 43, 70, 0.5)),
    linear-gradient(165deg, #1b4332 0%, #2d6a4f 38%, #95d5b2 100%);
}

.project-showcase-card--vision .project-showcase-card__media {
  background-image:
    linear-gradient(180deg, rgba(34, 24, 74, 0.12), rgba(34, 24, 74, 0.45)),
    linear-gradient(145deg, #4c1d95 0%, #7c3aed 48%, #c4b5fd 100%);
}

.project-showcase-card--support .project-showcase-card__media {
  background-image:
    linear-gradient(180deg, rgba(81, 27, 27, 0.06), rgba(81, 27, 27, 0.35)),
    linear-gradient(145deg, #f97316 0%, #fb7185 52%, #fde68a 100%);
}

.resources-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 18px;
}

.resources-tab {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid #cfe0d9;
  background: rgba(255,255,255,0.92);
  color: #445661;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.resources-tab.is-active {
  border-color: #2a9d8f;
  background: #2a9d8f;
  color: #fff;
}

.resources-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
}

.resources-subtab {
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  color: #172033;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.resources-subtab:hover {
  border-color: #9ac7bc;
  box-shadow: 0 18px 40px rgba(42, 157, 143, 0.1);
}

.resources-subtab strong {
  font-size: 14px;
}

.resources-subtab span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.resources-panel {
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 20px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.events-panel {
  padding: 2px 0 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.resource-card:hover {
  border-color: #9ac7bc;
  box-shadow: 0 18px 40px rgba(42, 157, 143, 0.12);
}

.resource-card__icon {
  color: #2a9d8f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card__type {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f5f2;
  color: #1f7066;
  font-size: 12px;
  font-weight: 800;
}

.resource-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.resource-card p {
  margin: 0;
  color: #66788a;
  font-size: 14px;
  line-height: 1.5;
}

.resource-back {
  margin: 0 0 16px;
}

.resource-back a {
  color: #2a9d8f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.resource-detail-card {
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 24px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.resource-detail-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.resource-detail-copy h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

.resource-detail-copy p {
  margin: 0;
  color: #5d6e80;
  font-size: 15px;
  line-height: 1.6;
}

.events-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.experiences-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.event-row-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.experience-showcase-card {
  border-radius: 18px;
  padding: 18px;
}

.experience-showcase-card--blue .event-row-date {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.experience-showcase-card--green .event-row-date {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
}

.experience-showcase-card--rose .event-row-date {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
}

.event-row-card--service {
  grid-template-columns: minmax(0, 1fr);
}

.event-row-card:hover {
  border-color: #94cddd;
  box-shadow: 0 18px 40px rgba(0, 180, 216, 0.12);
}

.event-row-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eff8ff 0%, #dff3f6 100%);
  color: #0f172a;
  text-align: center;
}

.event-row-date--calendar {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.event-row-date__month-band {
  width: 100%;
  padding: 7px 10px 6px;
  background: #2563eb;
  text-align: center;
}

.experience-showcase-card--green .event-row-date__month-band {
  background: #f97316;
}

.experience-showcase-card--rose .event-row-date__month-band {
  background: #ec4899;
}

.event-row-date__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
}

.event-row-date__month {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-row-date__day {
  font-size: 34px;
  line-height: 0.95;
}

.event-row-date__weekday {
  color: #5f7284;
  font-size: 13px;
  font-weight: 700;
}

.event-row-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-row-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.event-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.experience-brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.experience-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d7e2ea;
  background: #fff;
  color: #3b4b5f;
  font-size: 12px;
  font-weight: 800;
}

.event-row-type {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 800;
}

.event-row-structure {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #dbe6ef;
}

.event-row-icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #c7e9f1;
  border-radius: 999px;
  background: #f4fbfd;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-row-icon-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

.event-row-time {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.event-row-action {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.event-row-main h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
}

.event-row-main p {
  margin: 0;
  color: #66788a;
  font-size: 15px;
  line-height: 1.55;
}

.event-row-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  color: #506273;
  font-size: 13px;
}

.event-row-meta span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.event-row-meta strong {
  color: #0f172a;
  font-weight: 800;
}

.events-note {
  margin-top: 18px;
  border-top: 1px solid #d7e5df;
  padding-top: 18px;
}

.events-note h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.1;
}

.events-note p {
  margin: 0 0 14px;
  color: #5d6e80;
  font-size: 15px;
  line-height: 1.6;
}

.view-page-shell {
  height: calc(100vh - 73px);
  min-height: calc(100vh - 73px);
  margin: -2rem calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  background: #eef3f8;
}

.view-page-shell iframe {
  width: 100%;
  flex: 1;
  border: 0;
  background: #fff;
}

.mvp-kicker {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mvp-btn--light {
  background: #fff;
  color: #020617;
}

.mvp-btn--ghost,
.mvp-btn--ghost-dark {
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.mvp-btn--brand {
  background: #10b981;
  color: #fff;
}

.mvp-btn--dark {
  background: #0f172a;
  color: #fff;
}

.mvp-landing-shell,
.mvp-travel-shell {
  margin: 0 calc(50% - 50vw);
  padding: 24px;
  background: #f3f5f7;
}

.mvp-landing-shell {
  display: grid;
  gap: 24px;
}

.mvp-landing-hero {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #020617 0%, #111827 60%, #1f2937 100%);
  color: #fff;
}

.mvp-landing-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
}

.mvp-landing-lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: #e2e8f0;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.mvp-landing-copy,
.mvp-landing-quote {
  margin: 24px 0 0;
  max-width: 820px;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.6;
}

.mvp-landing-quote {
  font-style: italic;
}

.mvp-landing-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.mvp-landing-columns article {
  padding-left: 18px;
  border-left: 4px solid rgba(148, 163, 184, 0.5);
}

.mvp-landing-columns h2,
.mvp-landing-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.mvp-landing-columns p,
.mvp-landing-card p,
.mvp-landing-card li {
  margin: 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.mvp-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.mvp-landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mvp-landing-card {
  padding: 28px;
  border: 1px solid #dbe4ec;
  border-radius: 28px;
  background: #fff;
  color: #0f172a;
}

.mvp-landing-card--dark {
  background: #0f172a;
  border-color: #0f172a;
  color: #e2e8f0;
}

.mvp-landing-card--dark .mvp-kicker {
  color: #94a3b8;
}

.mvp-landing-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mvp-landing-split h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.mvp-landing-split ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.mvp-landing-strong {
  font-weight: 800;
  color: #fff;
}

.mvp-landing-card blockquote {
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 4px solid #0f172a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
}

.mvp-landing-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mvp-landing-paths div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: #f8fafc;
}

.mvp-landing-paths span {
  font-size: 28px;
}

.mvp-landing-paths strong {
  font-size: 18px;
}

.mvp-landing-paths small {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.mvp-travel-shell {
  display: grid;
  gap: 22px;
}

.mvp-travel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid #d9e3ea;
  border-radius: 28px;
  background: #fff;
}

.mvp-travel-header h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
}

.mvp-travel-header p {
  margin: 14px 0 0;
  max-width: 720px;
  color: #5f7284;
  font-size: 17px;
  line-height: 1.6;
}

.mvp-travel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mvp-travel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mvp-travel-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid #d7e2ea;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mvp-travel-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.mvp-travel-section {
  padding: 24px;
  border: 1px solid #d9e3ea;
  border-radius: 28px;
  background: #fff;
}

.mvp-travel-section__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mvp-travel-section__intro h2 {
  margin: 0;
  font-size: 32px;
}

.mvp-travel-section__intro p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 15px;
}

.mvp-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mvp-event-grid,
.mvp-brand-stack,
.mvp-category-grid {
  display: grid;
  gap: 14px;
}

.mvp-event-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe4ec;
  border-radius: 24px;
  background: #f8fafc;
}

.mvp-event-date {
  overflow: hidden;
  border: 1px solid #dbe4ec;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.mvp-event-date__month {
  display: block;
  padding: 8px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.mvp-event-date strong {
  display: block;
  padding-top: 12px;
  color: #0f172a;
  font-size: 34px;
  line-height: 1;
}

.mvp-event-date small {
  display: block;
  padding: 8px 0 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mvp-event-date--blue .mvp-event-date__month { background: #2563eb; }
.mvp-event-date--amber .mvp-event-date__month { background: #f59e0b; }
.mvp-event-date--rose .mvp-event-date__month { background: #ec4899; }

.mvp-event-card__body h3,
.mvp-brand-card h3,
.mvp-category-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.mvp-event-card__body p,
.mvp-brand-card p,
.mvp-category-card p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.mvp-event-card__chips,
.mvp-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mvp-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.mvp-chip--dark {
  background: #0f172a;
  color: #fff;
}

.mvp-chip--soft-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.mvp-chip--green {
  background: #047857;
  color: #fff;
}

.mvp-chip--amber {
  background: #f59e0b;
  color: #fff;
}

.mvp-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.mvp-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mvp-category-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid #dbe4ec;
  background: #fff;
}

.mvp-category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 28px;
}

.mvp-category-card--red { border-color: #fecaca; }
.mvp-category-card--amber { border-color: #fcd34d; }
.mvp-category-card--rose { border-color: #fbcfe8; }
.mvp-category-card--violet { border-color: #ddd6fe; }
.mvp-category-card--green { border-color: #bbf7d0; }
.mvp-category-card--blue { border-color: #bfdbfe; }
.mvp-category-card--yellow { border-color: #fde68a; }
.mvp-category-card--slate { border-color: #cbd5e1; }

.mvp-brand-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dbe4ec;
  border-radius: 24px;
  background: #fff;
}

.mvp-brand-card strong {
  font-size: 30px;
}

.mvp-brand-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .home-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-shell--with-aside {
    grid-template-columns: 1fr;
  }

  .dashboard-aside {
    position: static;
  }

  .home-sections,
  .prototype-grid,
  .dashboard-grid,
  .dashboard-grid--four,
  .projects-intro-grid,
  .resources-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .event-row-card {
    grid-template-columns: 1fr;
  }

  .event-row-date {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }

  .event-row-date--calendar {
    flex-direction: row;
    align-items: stretch;
  }

  .event-row-date__month-band {
    width: auto;
    min-width: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
  }

  .event-row-date__body {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .event-row-meta {
    grid-template-columns: 1fr;
  }

  .dashboard-header h1 {
    font-size: 34px;
  }

  .dashboard-header--role {
    flex-direction: column;
    align-items: flex-start;
  }

  .experiences-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .experiences-hero__intro h1 {
    font-size: 34px;
  }

  .experiences-filterbar {
    grid-template-columns: 1fr;
  }

  .mvp-landing-shell,
  .mvp-travel-shell {
    padding: 16px;
  }

  .mvp-landing-hero,
  .mvp-travel-header,
  .mvp-travel-section,
  .mvp-landing-card {
    padding: 20px;
  }

  .mvp-landing-columns,
  .mvp-landing-grid,
  .mvp-landing-split,
  .mvp-landing-paths,
  .mvp-category-grid {
    grid-template-columns: 1fr;
  }

  .mvp-travel-header,
  .mvp-travel-section__intro,
  .mvp-brand-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mvp-event-card {
    grid-template-columns: 1fr;
  }

  .mvp-event-date {
    width: 100%;
    max-width: 110px;
  }
}
.sortable-node-chosen {
  background: rgb(239 246 255);
}


.sortable-node-ghost {
  opacity: 0.18;
}

.sortable-node-drag {
  max-width: 100%;
  opacity: 0.86;
  transform: scale(0.985);
  box-shadow: 0 8px 18px rgb(15 23 42 / 0.14);
}

.sortable-node-fallback {
  max-width: 520px;
  overflow: hidden;
  border-radius: 6px;
  background: rgb(248 250 252 / 0.96);
}

.tree-folder-empty {
  min-height: 0;
}

[data-tree-editing="true"] .tree-folder-empty {
  min-height: 18px;
}

.tree-action-button:not(.hidden) {
  display: inline-flex;
}

.tree-action-button.hidden {
  display: none !important;
}

.tree-edit-control:not(.hidden) {
  display: inline-flex;
}

.tree-edit-control.hidden {
  display: none !important;
}

.tree-sidebar-toggle {
  display: none;
}

.tree-root-label {
  max-width: min(36vw, 260px);
}

.tree-toolbar-breadcrumb {
  scrollbar-width: thin;
}

.tree-breadcrumb-link {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-breadcrumb-world {
  max-width: 180px;
}

.tree-breadcrumb-parent {
  max-width: 180px;
}

.tree-breadcrumb-current {
  flex: 1 1 auto;
  max-width: 320px;
}

.tree-sidebar {
  width: 320px;
  flex: 0 0 320px;
}

.tree-sidebar-backdrop {
  display: none;
}

.flowtree-editor-body {
  min-height: 100vh;
  background: #f1f5f9;
}

.flowtree-editor-shell {
  position: relative;
  display: flex;
  height: 100vh;
  min-height: 0;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  background: white;
}

.flowtree-editor-topbar {
  flex: 0 0 auto;
  border-bottom: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  padding: 0.75rem 1rem;
}

.flowtree-editor-flash {
  flex: 0 0 auto;
  border-bottom: 1px solid rgb(226 232 240);
  background: white;
  padding: 0.75rem 1rem;
}

.flowtree-editor-frame {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
}

.flowtree-editor-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 2rem;
}

.tree-folder-pick-target {
  background: rgb(248 250 252);
  outline: 1px dashed rgb(148 163 184);
  outline-offset: 2px;
}

.tree-folder-pick-target:hover,
.tree-folder-drop-target {
  position: relative;
  outline: 2px dashed rgb(37 99 235) !important;
  outline-offset: 2px;
  background: rgb(219 234 254) !important;
  color: rgb(29 78 216) !important;
  box-shadow: 0 0 0 4px rgb(219 234 254 / 0.8) !important;
}

.tree-folder-pick-target::after {
  content: "Scegli";
  margin-left: 8px;
  border-radius: 999px;
  background: rgb(226 232 240);
  padding: 2px 8px;
  color: rgb(71 85 105);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.tree-folder-pick-target:hover::after,
.tree-folder-drop-target::after {
  content: "Sposta qui";
  margin-left: 8px;
  border-radius: 999px;
  background: rgb(37 99 235);
  padding: 2px 8px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.tree-folder-invalid-target {
  cursor: not-allowed;
  opacity: 0.45;
}

[data-tree-moving-node-id] [data-tree-folder-drop-id] a,
[data-tree-moving-node-id] [data-tree-folder-drop-id] button,
[data-tree-moving-node-id] [data-tree-folder-drop-id] form {
  pointer-events: none;
}

.tree-move-handle-selected {
  border-color: rgb(37 99 235) !important;
  background: rgb(219 234 254) !important;
  color: rgb(29 78 216) !important;
}

.tree-move-line {
  stroke: rgb(37 99 235);
  stroke-linecap: round;
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  filter: drop-shadow(0 3px 6px rgb(37 99 235 / 0.24));
}

.tree-move-line-svg {
  z-index: 60;
}

.tree-card-moving {
  outline: 2px solid rgb(37 99 235);
  outline-offset: 2px;
}

.node-tree-content-preview {
  color: rgb(51 65 85);
  font-size: 15px;
  line-height: 1.65;
}

.node-tree-content-preview p {
  margin-top: 0.9em;
}

.node-tree-content-preview p:first-child {
  margin-top: 0;
}

.node-tree-content-preview h1,
.node-tree-content-preview h2,
.node-tree-content-preview h3,
.node-tree-content-preview h4,
.node-tree-content-preview h5,
.node-tree-content-preview h6 {
  color: rgb(15 23 42);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  margin-top: 1.45em;
}

.node-tree-content-preview h1 {
  font-size: 28px;
}

.node-tree-content-preview h2 {
  font-size: 23px;
}

.node-tree-content-preview h3 {
  font-size: 19px;
}

.node-tree-content-preview h4,
.node-tree-content-preview h5,
.node-tree-content-preview h6 {
  font-size: 16px;
}

.node-tree-content-preview ul,
.node-tree-content-preview ol {
  margin: 0.9em 0 0 1.35em;
}

.node-tree-content-preview ul {
  list-style: disc;
}

.node-tree-content-preview ol {
  list-style: decimal;
}

.node-tree-content-preview li {
  margin-top: 0.3em;
}

.node-tree-content-preview strong {
  color: rgb(15 23 42);
  font-weight: 850;
}

.node-tree-content-preview a {
  color: rgb(37 99 235);
  font-weight: 700;
}

.node-public-page {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: rgb(255 255 255);
  color: rgb(15 23 42);
  padding: 28px 0 56px;
}

/* Breadcrumbs in top navbar */
.node-public-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  color: rgb(100 116 139);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.node-public-breadcrumb::-webkit-scrollbar {
  display: none;
}

.node-public-breadcrumb-separator {
  color: rgb(203 213 225);
  font-weight: 400;
}

.node-public-breadcrumb-link {
  color: rgb(71 85 105);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.node-public-breadcrumb-link:hover {
  color: rgb(37 99 235);
}

.node-public-breadcrumb-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  vertical-align: middle;
}

.node-public-breadcrumb-logo-square {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.node-public-breadcrumb-logo-full {
  max-width: 180px;
  height: 30px;
  object-fit: contain;
}

.node-public-breadcrumb-current {
  color: rgb(15 23 42);
  font-weight: 700;
}

.node-public-header,
.node-public-layout {
  width: min(800px, calc(100vw - 36px));
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .node-public-with-sidebar .node-public-header,
  .node-public-with-sidebar .node-public-layout {
    width: min(1120px, calc(100vw - 48px));
  }
}

@media (min-width: 1280px) {
  .node-public-with-sidebar .node-public-header,
  .node-public-with-sidebar .node-public-layout {
    width: min(1360px, calc(100vw - 48px));
  }

  .node-public-no-sidebar .node-public-header,
  .node-public-no-sidebar .node-public-layout {
    width: min(1120px, calc(100vw - 48px));
  }
}

.node-public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 42px;
}

.node-public-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  color: rgb(100 116 139);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.node-public-breadcrumb a {
  color: rgb(71 85 105);
}

.node-public-breadcrumb a:hover {
  color: rgb(37 99 235);
}

.node-public-breadcrumb span[aria-current="page"] {
  color: rgb(15 23 42);
}

.node-public-layout {
  display: block;
}

.node-public-sidebar {
  display: none;
}

.node-public-toc-sidebar {
  display: none;
}

.node-public-sidebar,
.node-public-toc-sidebar {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.node-public-sidebar,
.node-public-toc-sidebar,
.node-public-article {
  scrollbar-width: thin;
  scrollbar-color: rgb(203 213 225) transparent;
}

.node-public-sidebar::-webkit-scrollbar,
.node-public-toc-sidebar::-webkit-scrollbar,
.node-public-article::-webkit-scrollbar {
  width: 8px;
}

.node-public-sidebar::-webkit-scrollbar-thumb,
.node-public-toc-sidebar::-webkit-scrollbar-thumb,
.node-public-article::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(203 213 225);
}

@media (max-width: 1279px) {
  .node-public-toc-sidebar {
    display: block !important;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 45;
    width: 280px;
    max-width: 80vw;
    background: rgb(255 255 255);
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 !important;
    border-left: 1px solid rgb(226 232 240);
  }

  .node-public-toc-sidebar.open {
    transform: translateX(0);
  }

  .node-public-toc-nav {
    padding: 20px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 1023px) {
  .node-public-sidebar {
    display: block !important;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: 280px;
    max-width: 80vw;
    background: rgb(255 255 255);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 !important;
    border-right: 1px solid rgb(226 232 240);
  }

  .node-public-sidebar.open {
    transform: translateX(0);
  }

  .node-public-sidebar-parent {
    padding: 16px 20px;
    border-bottom: 1px solid rgb(241 245 249);
    margin-bottom: 8px;
  }

  .node-public-sidebar-list {
    padding: 0 12px;
  }
}

@media (min-width: 1024px) {
  .node-public-page {
    height: calc(100dvh - 8rem);
    min-height: 520px;
    overflow: hidden;
    padding: 0;
  }

  .node-public-layout {
    height: 100%;
    min-height: 0;
  }

  .node-public-with-sidebar .node-public-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
    min-height: 0;
  }

  .node-public-with-sidebar .node-public-sidebar {
    display: block;
    position: sticky;
    top: 0;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 14px;
    padding-bottom: 24px;
    border-right: 1px solid rgb(241 245 249);
  }

  .node-public-article {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 8px;
    padding-bottom: 88px;
  }
}

@media (min-width: 1280px) {
  /* Case 1: Both left sibling sidebar and right TOC sidebar */
  .node-public-with-sidebar .node-public-layout {
    grid-template-columns: 260px 1fr 260px;
    gap: 48px;
    height: 100%;
    min-height: 0;
  }

  .node-public-with-sidebar .node-public-toc-sidebar {
    display: block;
    position: sticky;
    top: 0;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-left: 20px;
    padding-bottom: 24px;
    border-left: 1px solid rgb(241 245 249);
    right: auto;
    width: auto;
    max-width: none;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  /* Case 2: No left sidebar, only right TOC sidebar */
  .node-public-no-sidebar .node-public-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: start;
    height: 100%;
    min-height: 0;
  }

  .node-public-no-sidebar .node-public-toc-sidebar {
    display: block;
    position: sticky;
    top: 0;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-left: 20px;
    padding-bottom: 24px;
    border-left: 1px solid rgb(241 245 249);
    right: auto;
    width: auto;
    max-width: none;
    box-shadow: none;
    transform: none;
    transition: none;
  }
}

.node-public-sidebar-parent-section {
  padding: 8px 10px 12px;
  border-bottom: 1px solid rgb(241 245 249);
  margin-bottom: 14px;
}

.node-public-sidebar-parent-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgb(100 116 139);
  transition: color 0.15s ease;
}

.node-public-sidebar-parent-link:hover {
  color: rgb(37 99 235);
}

.node-public-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node-public-sidebar-item {
  position: relative;
}

.node-public-sidebar-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.node-public-sidebar-link {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: rgb(71 85 105);
  text-decoration: none;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.node-public-sidebar-link:hover {
  background: rgb(248 250 252);
  color: rgb(15 23 42);
}

.node-public-sidebar-item.active .node-public-sidebar-item-row {
  background: rgb(239 246 255);
  box-shadow: inset 3px 0 0 rgb(37 99 235);
}

.node-public-sidebar-item.active .node-public-sidebar-link {
  color: rgb(37 99 235);
  font-weight: 700;
  padding-left: 14px;
}

.node-public-sidebar-item.active .node-public-sidebar-link:hover {
  background: transparent;
}

.node-public-sidebar-enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  color: rgb(148 163 184);
  transition: all 0.15s ease;
  margin-right: 4px;
}

.node-public-sidebar-enter-btn:hover {
  background: rgb(255 255 255);
  color: rgb(37 99 235);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.node-public-sidebar-sublist {
  list-style: none;
  margin: 6px 0 8px 18px;
  padding-left: 10px;
  border-left: 2px solid rgb(219 234 254);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.node-public-sidebar-sublink {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: rgb(100 116 139);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.node-public-sidebar-sublink:hover {
  background: rgb(248 250 252);
  color: rgb(15 23 42);
}

.node-public-article {
  min-width: 0;
}

.node-public-kicker {
  color: rgb(37 99 235);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-public-article h1 {
  margin-top: 12px;
  color: rgb(2 6 23);
  font-size: 42px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.98;
}

@media (min-width: 768px) {
  .node-public-article h1 {
    font-size: 56px;
  }
}

@media (min-width: 1280px) {
  .node-public-article h1 {
    font-size: 64px;
  }
}

.node-public-description {
  margin-top: 24px;
  max-width: 680px;
  color: rgb(71 85 105);
  font-size: 21px;
  line-height: 1.55;
}

.node-public-content {
  margin-top: 44px;
  color: rgb(30 41 59);
  font-size: 18px;
  line-height: 1.78;
}

.node-public-content p {
  margin-top: 1.15em;
}

.node-public-content p:first-child {
  margin-top: 0;
}

.node-public-content h2,
.node-public-content h3,
.node-public-content h4,
.node-public-content h5,
.node-public-content h6 {
  color: rgb(15 23 42);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
  margin-top: 1.8em;
}

.node-public-content h1 {
  color: rgb(15 23 42);
  font-size: 38px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  margin-top: 1.7em;
}

.node-public-content h2 {
  font-size: 30px;
}

.node-public-content h3 {
  font-size: 24px;
}

.node-public-content h4 {
  font-size: 20px;
}

.node-public-content h5,
.node-public-content h6 {
  font-size: 18px;
}

.node-public-content ul,
.node-public-content ol {
  margin: 1.1em 0 0 1.4em;
}

.node-public-content ul {
  list-style: disc;
}

.node-public-content ol {
  list-style: decimal;
}

.node-public-content li {
  margin-top: 0.4em;
}

.node-public-content strong {
  color: rgb(15 23 42);
  font-weight: 850;
}

.node-public-content em {
  color: rgb(51 65 85);
}

.node-public-content a {
  color: rgb(37 99 235);
  font-weight: 700;
}

.node-public-empty {
  border: 1px dashed rgb(203 213 225);
  border-radius: 8px;
  background: rgb(248 250 252);
  color: rgb(100 116 139);
  padding: 18px;
}

.node-public-reading-nav-static {
  position: sticky;
  bottom: 0;
  z-index: 30;
  border-top: 1px solid rgb(226 232 240);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  width: 100%;
  box-shadow: 0 -3px 12px rgba(15, 23, 42, 0.05);
  padding: 10px 0;
  margin-top: auto;
}

.node-public-book-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.node-public-book-col-center {
  justify-content: center;
}

.node-public-book-link-center {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgb(71 85 105);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

.node-public-book-text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.node-public-book-title-center {
  font-size: 13px;
  font-weight: 700;
  color: rgb(15 23 42);
  line-height: 1.4;
  margin-top: 2px;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.group:hover .node-public-book-title-center {
  color: rgb(37 99 235);
}

.node-public-book-col {
  display: flex;
  width: 100%;
}

.node-public-book-col-left {
  justify-content: flex-start;
}

.node-public-book-col-right {
  justify-content: flex-end;
}

.node-public-book-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgb(71 85 105);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 320px;
}

.node-public-book-prev {
  justify-content: flex-start;
}

.node-public-book-next {
  justify-content: flex-end;
}

.node-public-book-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  color: rgb(100 116 139);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.group:hover .node-public-book-icon-box {
  border-color: rgb(191 219 254);
  background: rgb(239 246 255);
  color: rgb(37 99 235);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.node-public-book-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.node-public-book-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(148 163 184);
}

.node-public-book-title {
  font-size: 13px;
  font-weight: 700;
  color: rgb(15 23 42);
  line-height: 1.4;
  margin-top: 2px;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group:hover .node-public-book-title {
  color: rgb(37 99 235);
}

.node-public-book-spacer {
  min-height: 1px;
  width: 100%;
}

@media (max-width: 640px) {
  .node-public-book-title,
  .node-public-book-title-center {
    font-size: 11px;
    max-width: 90px;
  }
  .node-public-book-link,
  .node-public-book-link-center {
    gap: 6px;
  }
  .node-public-book-icon-box {
    width: 32px;
    height: 32px;
  }
}

.node-public-next-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 44px;
  padding: 24px;
  border: 1px solid rgb(226 232 240);
  border-radius: 16px;
  background: rgb(248 250 252);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.node-public-next-section:hover {
  border-color: rgb(147 197 253);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.05);
}

@media (min-width: 640px) {
  .node-public-next-section {
    flex-direction: row;
    align-items: center;
  }
}

.node-public-next-info {
  display: flex;
  flex-direction: column;
}

.node-public-next-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(148 163 184);
}

.node-public-next-title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  color: rgb(15 23 42);
}

.node-public-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  background: rgb(37 99 235);
  color: rgb(255 255 255);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.node-public-next-btn:hover {
  background: rgb(29 78 216);
  transform: translateY(-1px);
}

.node-public-next-svg {
  height: 16px;
  width: 16px;
}


.node-public-toc-nav {
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.node-public-toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.node-public-toc-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(148 163 184); /* slate-400 */
}

.node-public-toc-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid rgb(241 245 249); /* border-l-2 border-slate-100 */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.node-public-toc-item {
  position: relative;
}

.node-public-toc-link {
  position: relative;
  display: block;
  width: 100%;
  padding: 6px 8px 6px 16px;
  color: rgb(100 116 139);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.node-public-toc-link:hover {
  background: rgb(248 250 252);
  color: rgb(37 99 235);
}

.node-public-toc-link-level-3 {
  padding-left: 30px;
  color: rgb(100 116 139);
  font-size: 12px;
  font-weight: 550;
}

.node-public-toc-link.is-active {
  background: rgb(239 246 255);
  color: rgb(37 99 235);
  font-weight: 800;
}

.node-public-toc-link.is-active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: rgb(37 99 235);
}

.node-public-toc-link-level-3.is-active::before {
  left: -2px;
}

.node-public-children {
  width: 100%;
  margin-top: 38px;
}

.node-public-children .node-public-reading-nav {
  margin-top: 0;
  margin-bottom: 26px;
}

.node-public-children .node-public-book-nav {
  border-top: 0;
  padding-top: 0;
}

.node-public-child-index {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.node-public-child-index li {
  border-top: 1px solid rgb(226 232 240);
}

.node-public-child-index li:first-child {
  border-top: 0;
}

.node-public-child-index li:last-child {
  border-bottom: 1px solid rgb(226 232 240);
}

.node-public-child-index a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 0;
}

.node-public-child-index a:hover strong {
  color: rgb(37 99 235);
}

.node-public-child-index span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  border-radius: 999px;
  background: rgb(248 250 252);
  color: rgb(100 116 139);
  font-size: 12px;
  font-weight: 850;
  padding: 0;
}

.node-public-child-index strong {
  display: block;
  color: rgb(15 23 42);
  font-size: 18px;
  line-height: 1.35;
}

.node-public-child-index p {
  margin: 5px 0 0;
  color: rgb(100 116 139);
  font-size: 14px;
  line-height: 1.55;
}

.node-editor-page {
  width: 100%;
  background: rgb(255 255 255);
  padding: 18px 24px 24px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.node-editor-header {
  position: sticky;
  top: 4rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 18px;
  max-width: 1280px;
  border-bottom: 1px solid rgb(226 232 240);
  background: rgb(255 255 255 / 0.94);
  padding: 0 0 14px;
  backdrop-filter: blur(10px);
}

.node-editor-shell {
  margin: 0 auto;
  max-width: 1280px;
}

.node-editor-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.node-compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.node-compose-main {
  min-width: 0;
}

.node-compose-sidebar {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Settings drawer toggle styling */
.node-settings-checkbox:not(:checked) ~ .node-compose-layout {
  grid-template-columns: minmax(0, 1fr);
}

.node-settings-checkbox:not(:checked) ~ .node-compose-layout .node-compose-sidebar {
  display: none !important;
}

.node-settings-checkbox:checked ~ .node-compose-layout .node-compose-sidebar {
  display: flex;
}

.node-settings-toggle-btn {
  transition: all 150ms ease-in-out;
}

.node-settings-checkbox:checked ~ .node-compose-layout .node-settings-toggle-btn {
  background-color: rgb(219 234 254) !important;
  color: rgb(29 78 216) !important;
  border-color: rgb(191 219 254) !important;
}

.node-settings-checkbox:checked ~ .node-compose-layout .node-settings-toggle-btn:hover {
  background-color: rgb(191 219 254) !important;
  border-color: rgb(147 197 253) !important;
}


.node-side-section {
  border: 1px solid rgb(226 232 240);
  border-radius: 10px;
  background: rgb(248 250 252);
  padding: 14px;
}

.node-side-section h2 {
  color: rgb(15 23 42);
  font-size: 14px;
  font-weight: 800;
}

.node-side-note {
  color: rgb(100 116 139);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}

.node-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.node-field:first-of-type {
  margin-top: 0;
}

.node-field label {
  color: rgb(51 65 85);
  font-size: 13px;
  font-weight: 700;
}

.node-input {
  width: 100%;
  border: 1px solid rgb(203 213 225);
  border-radius: 8px;
  background: white;
  color: rgb(15 23 42);
  font: inherit;
  padding: 10px 12px;
}

.node-title-field,
.node-description-field,
.node-content-field {
  border-bottom: 1px solid rgb(226 232 240);
}

.node-title-input {
  width: 100%;
  border: 0;
  color: rgb(2 6 23);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
  padding: 4px 0 16px;
}

.node-title-input:focus,
.node-description-input:focus,
.node-body-input:focus {
  outline: none;
}

.node-title-input::placeholder,
.node-description-input::placeholder,
.node-body-input::placeholder {
  color: rgb(148 163 184);
}

.node-description-input {
  width: 100%;
  border: 0;
  color: rgb(71 85 105);
  font-size: 17px;
  line-height: 1.55;
  padding: 16px 0;
  resize: vertical;
}

.node-content-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 8px;
  color: rgb(100 116 139);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.node-body-input {
  width: 100%;
  min-height: 58vh;
  border: 0;
  color: rgb(15 23 42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.75;
  padding: 12px 0 28px;
  resize: vertical;
}

.node-content-field .EasyMDEContainer {
  border-top: 0;
}

.node-content-field .editor-toolbar {
  border: 0;
  border-bottom: 1px solid rgb(226 232 240);
  border-radius: 0;
  padding: 8px 0;
}

.node-content-field .editor-toolbar button {
  border-radius: 6px;
  color: rgb(71 85 105) !important;
}

.node-content-field .editor-toolbar button:hover,
.node-content-field .editor-toolbar button.active {
  background: rgb(241 245 249);
  border-color: rgb(226 232 240);
}

.node-content-field .CodeMirror {
  min-height: 58vh;
  border: 0;
  color: rgb(15 23 42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.75;
  padding: 12px 0 28px;
}

.node-content-field .CodeMirror-scroll {
  min-height: 58vh;
}

.node-content-field .editor-preview,
.node-content-field .editor-preview-side {
  background: white;
  color: rgb(15 23 42);
  font-size: 15px;
  line-height: 1.75;
  padding: 24px;
}

.editor-toolbar.fullscreen,
.CodeMirror-fullscreen,
.editor-preview-side {
  z-index: 1000 !important;
}

.editor-toolbar.fullscreen {
  border-bottom: 1px solid rgb(226 232 240) !important;
}

.node-input:focus {
  border-color: rgb(37 99 235);
  box-shadow: 0 0 0 3px rgb(191 219 254);
  outline: none;
}

.node-textarea {
  line-height: 1.5;
  resize: vertical;
}

.node-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.node-editor-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.node-advanced-panel {
  margin-top: 16px;
  border-top: 1px solid rgb(226 232 240);
  padding-top: 14px;
}

.node-advanced-panel summary {
  color: rgb(71 85 105);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.node-editor-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid rgb(226 232 240);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.94);
  padding: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 24px rgb(15 23 42 / 0.08);
}

.node-primary-button,
.node-secondary-button {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
}

.node-primary-button {
  background: rgb(37 99 235);
  color: white;
}

.node-primary-button:hover {
  background: rgb(59 130 246);
}

.node-secondary-button {
  border: 1px solid rgb(203 213 225);
  color: rgb(51 65 85);
}

.node-secondary-button:hover {
  background: rgb(241 245 249);
}

.node-editor-errors {
  border: 1px solid rgb(252 165 165);
  border-radius: 10px;
  background: rgb(254 242 242);
  color: rgb(153 27 27);
  font-size: 14px;
  padding: 14px 16px;
}

.node-editor-errors ul {
  list-style: disc;
  margin: 8px 0 0 20px;
}

@media (max-width: 767px) {
  .tree-sidebar-toggle {
    display: inline-flex;
  }

  .tree-toolbar {
    gap: 0.5rem;
  }

  .tree-roots-link,
  .tree-public-link {
    display: none;
  }

  .tree-toolbar-breadcrumb {
    order: 10;
    flex-basis: 100%;
  }

  .tree-breadcrumb-world,
  .tree-breadcrumb-parent {
    max-width: 120px;
  }

  .tree-breadcrumb-current {
    max-width: 52vw;
  }

  .tree-edit-button {
    margin-left: auto;
  }

  .tree-move-message {
    order: 10;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  [data-tree-target="cancelMoveButton"] {
    order: 11;
  }

  .tree-body {
    position: relative;
  }

  .tree-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(86vw, 340px) !important;
    max-width: 86vw;
    flex: none !important;
    border-right: 1px solid rgb(226 232 240);
    box-shadow: 0 18px 48px rgb(15 23 42 / 0.24);
    transform: translateX(-105%);
    transition: transform 160ms ease;
  }

  [data-tree-sidebar-open="true"] .tree-sidebar {
    transform: translateX(0);
  }

  .tree-sidebar-backdrop {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: rgb(15 23 42 / 0.24);
  }

  [data-tree-sidebar-open="true"] .tree-sidebar-backdrop {
    display: block;
  }

  .tree-resizer {
    display: none;
  }

  .tree-main {
    padding: 1rem;
  }

  .node-editor-page {
    padding: 16px;
  }

  .node-editor-header {
    flex-direction: column;
    align-items: stretch;
  }

  .node-compose-layout {
    grid-template-columns: 1fr;
  }

  .node-compose-sidebar {
    position: static;
    order: -1;
  }

  .node-editor-two-cols {
    grid-template-columns: 1fr;
  }

  .node-body-input {
    min-height: 42vh;
  }

  .node-editor-actions {
    justify-content: stretch;
  }

  .node-primary-button,
  .node-secondary-button {
    flex: 1;
    text-align: center;
  }

  .node-public-page {
    padding: 18px 0 42px;
  }

  .node-public-header,
  .node-public-layout,
  .node-public-children {
    width: min(100% - 36px, 800px);
  }

  .node-public-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 34px;
  }



  .node-public-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .node-public-description {
    font-size: 18px;
  }

  .node-public-content {
    font-size: 16px;
  }



  .node-public-children {
    margin-top: 44px;
  }

  .node-public-child-index a {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .node-public-child-index span {
    width: 32px;
  }
}

/* ==========================================================================
   OBSIDIAN EDITOR THEME
   ========================================================================== */

/* Full-bleed workspace adjustments */
.flowtree-editor-shell .node-editor-page {
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.flowtree-editor-shell .node-editor-shell {
  max-width: 100%;
  margin: 0;
}

/* Form structure */
.obsidian-editor-form {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4.5rem); /* height minus topbar */
  min-height: 0;
}

.obsidian-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Main Canvas */
.obsidian-main {
  padding: 2.5rem 3rem;
  overflow-y: auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Title Input */
.obsidian-title-field {
  border: 0;
  padding: 0;
  margin-bottom: 0.5rem;
}

.obsidian-title-input {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: rgb(15 23 42);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0;
  outline: none !important;
  box-shadow: none !important;
}

.obsidian-title-input::placeholder {
  color: rgb(203 213 225);
}

/* Description Input */
.obsidian-description-field {
  border: 0;
  padding: 0;
}

.obsidian-description-input {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: rgb(100 116 139);
  font-size: 1rem;
  line-height: 1.6;
  padding: 0;
  resize: none;
  outline: none !important;
  box-shadow: none !important;
}

.obsidian-description-input::placeholder {
  color: rgb(226 232 240);
}

/* Markdown Editor Canvas */
.obsidian-content-field {
  border: 0;
  border-top: 1px solid rgb(241 245 249);
  margin-top: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.obsidian-content-toolbar {
  padding: 0.75rem 0 0.5rem;
  color: rgb(148 163 184);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.obsidian-body-input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 1rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  outline: none !important;
  resize: vertical;
}

/* EasyMDE adjustments inside Obsidian Theme */
.obsidian-content-field .EasyMDEContainer {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.obsidian-content-field .editor-toolbar {
  border: 0;
  border-bottom: 1px solid rgb(241 245 249);
  border-radius: 0;
  padding: 0.5rem 0;
  opacity: 0.85;
  transition: opacity 150ms;
}

.obsidian-content-field .editor-toolbar:hover {
  opacity: 1;
}

.obsidian-content-field .CodeMirror {
  border: 0;
  border-radius: 0;
  background: transparent;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 1rem 0;
}

.obsidian-content-field .CodeMirror-scroll {
  min-height: 350px;
}

/* Properties Sidebar Drawer */
.obsidian-sidebar {
  background: rgb(248 250 252);
  border-left: 1px solid rgb(226 232 240);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  position: static; /* Let layout handle column placement */
  height: 100%;
}

.obsidian-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(235 240 245);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.obsidian-sidebar-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(100 116 139);
}

/* Properties Key/Value rows */
.obsidian-properties-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.obsidian-property-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid rgba(235, 240, 245, 0.7);
  padding: 0.35rem 0;
}

.obsidian-property-key {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 130px;
  flex-shrink: 0;
  color: rgb(100 116 139);
  font-weight: 500;
  user-select: none;
}

.obsidian-property-icon {
  font-size: 14px;
  opacity: 0.85;
}

.obsidian-property-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obsidian-property-value {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.obsidian-property-text {
  font-weight: 600;
  color: rgb(15 23 42);
  padding-left: 0.5rem;
}

/* Value Inputs & Dropdowns */
.obsidian-property-input,
.obsidian-property-select {
  width: 100%;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgb(15 23 42) !important;
  font-size: 13px !important;
  padding: 0.35rem 0.5rem !important;
  border-radius: 4px !important;
  transition: all 150ms ease !important;
  outline: none !important;
}

.obsidian-property-input:hover,
.obsidian-property-select:hover {
  background: rgb(241 245 249) !important;
}

.obsidian-property-input:focus,
.obsidian-property-select:focus {
  background: #ffffff !important;
  border-color: rgb(191 219 254) !important;
  box-shadow: 0 0 0 2.5px rgb(191 219 254 / 0.6) !important;
}

/* Autocomplete adjustment */
[data-controller="autocomplete"] {
  width: 100%;
}

/* Legacy panel */
.obsidian-legacy-panel {
  border-top: 1px solid rgb(226 232 240);
  padding-top: 1rem;
}

/* Footer Status Bar */
.obsidian-footer {
  flex-shrink: 0;
  height: 3.5rem;
  border-top: 1px solid rgb(226 232 240);
  background: rgba(255, 255, 255, 0.94);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
  z-index: 30;
}

/* Obsidian Action Buttons */
.obsidian-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 150ms ease;
  line-height: 1;
}

.obsidian-button-primary {
  background: rgb(15 23 42);
  color: #ffffff;
  border: 1px solid rgb(15 23 42);
}

.obsidian-button-primary:hover {
  background: rgb(51 65 85);
  border-color: rgb(51 65 85);
}

.obsidian-button-secondary {
  background: #ffffff;
  color: rgb(71 85 105);
  border: 1px solid rgb(203 213 225);
}

.obsidian-button-secondary:hover {
  background: rgb(248 250 252);
  color: rgb(15 23 42);
}

/* Checkbox settings toggle connection */
.node-settings-checkbox:not(:checked) ~ .obsidian-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

.node-settings-checkbox:not(:checked) ~ .obsidian-layout .obsidian-sidebar {
  display: none !important;
}

.node-settings-checkbox:checked ~ .obsidian-layout .obsidian-sidebar {
  display: flex !important;
}

.node-settings-checkbox:checked ~ .obsidian-layout .node-settings-toggle-btn {
  background-color: rgb(219 234 254) !important;
  color: rgb(29 78 216) !important;
  border-color: rgb(191 219 254) !important;
}

/* Errors override */
.obsidian-errors {
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 13px;
  margin: 1.5rem 3rem 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .obsidian-layout {
    grid-template-columns: 1fr !important;
  }
  
  .obsidian-sidebar {
    border-left: 0;
    border-top: 1px solid rgb(226 232 240);
    height: auto;
  }
  
  .obsidian-main {
    padding: 1.5rem;
  }
  
  .obsidian-errors {
    margin: 1rem 1.5rem 0;
  }
}

/* Obsidian Reading & Viewing Layout */
.obsidian-view-container {
  padding: 2.5rem 3rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.obsidian-view-title {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.025em;
  color: rgb(15 23 42);
}

.obsidian-child-row {
  transition: all 150ms ease-in-out;
}

.obsidian-child-row:hover {
  border-color: rgb(203 213 225) !important;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.04), 0 2px 4px -2px rgb(0 0 0 / 0.04) !important;
}

/* Beautiful Obsidian Markdown Rendering canvas */
.obsidian-markdown-canvas {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: rgb(51 65 85);
  max-width: 800px;
}

.obsidian-markdown-canvas p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.obsidian-markdown-canvas p:first-child {
  margin-top: 0;
}

.obsidian-markdown-canvas h1,
.obsidian-markdown-canvas h2,
.obsidian-markdown-canvas h3,
.obsidian-markdown-canvas h4,
.obsidian-markdown-canvas h5,
.obsidian-markdown-canvas h6 {
  color: rgb(15 23 42);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.obsidian-markdown-canvas h1 {
  font-size: 2rem;
  border-bottom: 1px solid rgb(241 245 249);
  padding-bottom: 0.35rem;
}

.obsidian-markdown-canvas h2 {
  font-size: 1.5rem;
}

.obsidian-markdown-canvas h3 {
  font-size: 1.25rem;
}

.obsidian-markdown-canvas ul,
.obsidian-markdown-canvas ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.6em;
}

.obsidian-markdown-canvas ul {
  list-style-type: disc;
}

.obsidian-markdown-canvas ol {
  list-style-type: decimal;
}

.obsidian-markdown-canvas li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.obsidian-markdown-canvas strong {
  color: rgb(15 23 42);
  font-weight: 700;
}

.obsidian-markdown-canvas blockquote {
  border-left: 4px solid rgb(226 232 240);
  padding-left: 1.25rem;
  color: rgb(100 116 139);
  font-style: italic;
  margin: 1.5rem 0;
}

.obsidian-markdown-canvas pre,
.obsidian-markdown-canvas code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgb(241 245 249);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: rgb(225 29 72);
}

.obsidian-markdown-canvas pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.obsidian-markdown-canvas pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Responsive view container padding adjustments */
@media (max-width: 767px) {
  .obsidian-view-container {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   UNIFIED ADMIN UX SYSTEM (Light HSL Slate/Indigo theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --admin-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #f1f5f9;
  --text-main: #334155;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --primary-gradient-start: #6366f1;
  --primary-gradient-end: #4f46e5;
  --border-color: rgba(0, 0, 0, 0.05);
}

.admin-page {
  font-family: var(--admin-font);
  color: var(--text-main);
  box-sizing: border-box;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.breadcrumbs-nav {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs-nav a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs-nav a:hover {
  text-decoration: underline;
}

.dashboard-card, .table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1.5rem;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

/* Context Items */
.context-item {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 1rem;
}

.context-item:last-child {
  margin-bottom: 0;
}

.context-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.context-value {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-all;
}

.context-value.highlight {
  color: #0284c7;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
  border: none;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
  filter: brightness(1.1);
}

.btn-secondary {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #475569;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Tables */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dashboard-table th {
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-table td {
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

.dashboard-table tr:hover td {
  background: #f8fafc;
}

.role-pages-table .role-pages-role {
  width: 1%;
  min-width: 150px;
  vertical-align: top;
  background: #f8fafc;
}

.role-pages-table tr:hover .role-pages-role {
  background: #eef2ff;
}

.action-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Badges & Status */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.active, .badge.published {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge.inactive, .badge.archived {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.badge.draft {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge.primary {
  background: #e0e7ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-dot.active {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot.inactive {
  background-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Superadmin Dashboard Tabs */
.superadmin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 2rem;
  padding-bottom: 2px;
}

.superadmin-tabs .tab-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem 0.5rem 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.superadmin-tabs .tab-btn:hover {
  color: #4f46e5;
  background: #f8fafc;
}

.superadmin-tabs .tab-btn.active {
  color: #4f46e5;
  background: #ffffff;
  border-color: #e2e8f0;
  border-bottom: 2px solid #ffffff;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Enhancements for dashboard role table */
.role-pages-table th, .role-pages-table td {
  padding: 0.875rem 1rem;
}

.role-pages-role {
  vertical-align: top;
  font-weight: 700;
  background: #f8fafc;
  border-right: 1px solid var(--border-color, #e2e8f0);
}
