/* Nursing concept map template — page styles. Shared chrome lives in shared.css. */

.nm-page .header-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.nm-page .header-back-link:hover {
  border-color: var(--text-secondary);
  text-decoration: none;
}

.nm-page .page-intro {
  max-width: 42rem;
}

.nm-page .lead {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.nm-page .privacy-line {
  margin: 0.75rem 0 0;
}

.disclaimer {
  margin: 0;
  padding: 0.15rem 0 0.15rem 0.7rem;
  border-left: 3px solid #8a5a2b;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.nm-tool {
  margin: 0 0 1.25rem;
}

.board {
  color-scheme: light;
  background: #f7f4ee;
  color: #1c2430;
  border: 1px solid #d5dde6;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem 1rem 0.35rem;
}

.board-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(9.5rem, auto);
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d9cfc0;
}

.board label,
.node label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board-head label {
  color: #314152;
}

.board-head input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.1rem;
  border: 0;
  border-bottom: 1px solid #d5dde6;
  border-radius: 0;
  background: transparent;
  color: #1c2430;
  font: inherit;
}

.field-title input {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.board-head input:focus,
.node textarea:focus {
  outline: 2px solid #005bb5;
  outline-offset: 2px;
}

.board-head input::placeholder,
.node textarea::placeholder {
  color: #4d5d6e;
}

.map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas:
    ". assessment ."
    "diagnoses problem interventions"
    "evaluation . rationales";
  gap: 2.5rem 6.5rem;
  align-items: stretch;
}

.map-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.map-links line {
  stroke: #5c6b7a;
  stroke-width: 1.6;
}

.map-links text {
  fill: #1c2430;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.map-links .pill {
  fill: #f7f4ee;
}

.map-links marker path {
  fill: #5c6b7a;
}

.node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fbf8f2;
  border: 1.5px solid #8aa0b8;
  border-radius: 14px;
  padding: 0.55rem 0.7rem 0.65rem;
  box-shadow: 0 1px 0 rgba(22, 50, 79, 0.05);
}

.node-assessment { grid-area: assessment; background: #e7f2f6; border-color: #1f6f8b; }
.node-diagnoses { grid-area: diagnoses; background: #f8f0e4; border-color: #8a5a2b; }
.node-problem {
  grid-area: problem;
  background: #e7eef6;
  border: 2px solid #16324f;
  border-radius: 16px;
}
.node-interventions { grid-area: interventions; background: #e7f4ee; border-color: #1d6b4f; }
.node-rationales { grid-area: rationales; background: #f3eef6; border-color: #5c4d7a; }
.node-evaluation { grid-area: evaluation; background: #f8ecee; border-color: #8b3d4a; }

.node-assessment label { color: #1f6f8b; }
.node-diagnoses label { color: #8a5a2b; }
.node-problem label { color: #16324f; }
.node-interventions label { color: #1d6b4f; }
.node-rationales label { color: #5c4d7a; }
.node-evaluation label { color: #8b3d4a; }

.node-role {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #16324f;
  color: #f7f4ee;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.node textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.15rem 0 0;
  border: 0;
  border-radius: 0;
  resize: vertical;
  background: transparent;
  color: #1c2430;
  font: inherit;
  line-height: 1.45;
  min-height: 6.5rem;
}

.node-problem textarea {
  min-height: 7.5rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.node-assessment textarea,
.node-evaluation textarea,
.node-rationales textarea {
  min-height: 5.75rem;
}

.connections {
  margin: 1rem 0 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid #d9cfc0;
}

.connections h2 {
  margin: 0 0 0.35rem;
  color: #1c2430;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.connections ol {
  margin: 0;
  padding-left: 1.2rem;
}

.connections li {
  margin: 0.2rem 0;
  color: #243140;
  line-height: 1.45;
}

.downloads,
.seo,
.faq,
.cta,
.apps {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 1rem;
}

.downloads h2,
.seo h2,
.faq h2,
.apps h2,
.cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.cta {
  border-left: 4px solid var(--accent);
}

.cta h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.2;
}

.cta-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.downloads p,
.seo p,
.apps p,
.faq p,
.cta p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.downloads .disclaimer {
  margin-top: 0.75rem;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nm-tool button {
  font: inherit;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  cursor: pointer;
}

.nm-tool button:hover {
  border-color: var(--text-secondary);
}

.nm-tool button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.save-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.seo h3,
.faq h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1rem;
}

.seo ol,
.seo ul,
.apps ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.seo li,
.apps li {
  margin: 0.35rem 0;
  line-height: 1.5;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 0.7rem 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 0.45rem 0 0.2rem;
}

.app-links {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.5rem;
}

.app-links li {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.app-links a {
  font-weight: 650;
}

.app-links span {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.nm-nav {
  margin: 0.25rem 0 0;
}

@media (max-width: 860px) {
  .board-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .map {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .map-links {
    display: none;
  }

  .node textarea,
  .node-problem textarea {
    min-height: 5.5rem;
  }

  .dl-row button {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 520px) {
  .dl-row button {
    flex-basis: 100%;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .page-intro,
  .downloads,
  .seo,
  .faq,
  .cta,
  .apps,
  .save-status,
  .skip-link {
    display: none !important;
  }

  body,
  main {
    margin: 0;
    padding: 0;
    max-width: none;
    background: #fff;
  }

  .nm-tool,
  .board {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
  }

  .map {
    display: grid !important;
    gap: 1.25rem 2rem;
  }

  .map-links {
    display: block !important;
  }

  .node textarea {
    min-height: 0 !important;
    resize: none;
  }

  .board,
  .node,
  .node textarea,
  .board-head input {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

@page {
  size: A4 landscape;
  margin: 12mm;
}
