/* NT Hub brand kit v1.0.0. Keep application layout, controls and permissions local. */
.nt-app-header {
  --nt-forest: #142d29;
  --nt-lime: #d5f5a3;
  --nt-canvas: #f7f8f6;
  box-sizing: border-box;
  padding: 16px 20px;
  border: 1px solid #23443c;
  border-radius: 12px;
  background: var(--nt-forest);
  color: #eef6e7;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

.nt-app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nt-app-logo {
  box-sizing: border-box;
  display: block;
  flex: 0 0 80px;
  width: 80px;
  height: 40px;
  padding: 3px 5px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.nt-app-identity {
  display: grid;
  gap: 5px;
  min-width: 0;
  text-align: left;
}

.nt-app-identity > :is(h1, h2, strong) {
  margin: 0;
  color: #f2f8eb;
  font-family: 'Manrope', 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.nt-app-identity > :is(p, small) {
  margin: 0;
  color: #b3c6b5;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

/* Place this anchor first in the header's upper-left identity area. */
.nt-hub-return {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-self: start;
  flex-shrink: 0;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #d5f5a3;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.nt-hub-return > svg {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-hub-return:hover {
  color: #effbdc;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nt-hub-return:focus-visible {
  outline: 3px solid #d5f5a3;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .nt-app-header { padding: 14px 16px; border-radius: 10px; }
  .nt-app-brand { gap: 10px; }
  .nt-app-identity > :is(h1, h2, strong) { font-size: 20px; }
  .nt-hub-return { min-height: 40px; font-size: 13px; }
}
