/* The overview is a standalone reading path; links in its body stay on-page. */
.overview-head { padding-bottom: 16px; }
.overview-head h1 { margin-bottom: 22px; }
.overview-head .small { max-width: 90ch; }
.overview-cycle { list-style: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 20px; padding: 26px 0; margin: 20px 0; border-block: 1px solid var(--line); }
.overview-cycle li { font-size: 16px; line-height: 1.45; font-weight: 600; padding-right: 15px; position: relative; }
.overview-cycle li:not(:last-child):after { content:'→'; position: absolute; right: -7px; top: 8px; color: #7187ac; font-size: 20px; }
.overview-cycle span { display: block; color: var(--blue); font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.overview-map-scroll { overflow-x: auto; margin: 32px 0 20px; padding: 20px 12px; background: white; border: 1px solid #d2ddec; border-radius: 14px; scrollbar-width: thin; }
.overview-map { position: relative; width: 950px; height: 560px; margin: auto; }
.overview-wires { position: absolute; inset: 0; width: 950px; height: 560px; pointer-events: none; }
.overview-wires g path { fill: none; stroke: #95aacc; stroke-width: 1.5; }
.overview-wires marker path { fill: #95aacc; }
.overview-wires circle { fill: white; stroke: #95aacc; stroke-width: 1; }
.overview-wires text { font-family: Arial,Helvetica,sans-serif; font-size: 12px; fill: #4d668f; text-anchor: middle; }
.overview-node { position: absolute; width: 280px; min-height: 136px; padding: 17px; border: 1px solid #c8d7eb; border-radius: 11px; background: #f3f6fb; color: var(--night); text-decoration: none; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px 12px; align-content: start; }
.overview-node .condition-icon { width: 27px; height: 27px; grid-row: span 3; }
.overview-node strong { font-size: 19px; line-height: 1.25; font-weight: 600; }
.overview-node>span { font-size: 14px; line-height: 1.4; color: #4d5d75; }
.overview-node small { font-size: 11px; color: #714296; }
.overview-node:hover { border-color: var(--blue); }
.overview-node.node-employee { background: #edf1ff; border: 2px solid #5674e8; }
.overview-node.node-dna { background: #eaf5f0; }
.overview-node.node-person,.overview-node.node-private { background: #f7f3fa; border-style: dashed; }
.overview-node.node-runtime { background: #f2f7e8; }
.overview-subtitle { font-size: 25px; line-height: 1.3; font-weight: 600; margin: 43px 0 24px; }
.overview-relations { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 40px; }
.overview-relations li { display: flex; gap: 14px; align-items: start; }
.relation-number { display: grid; place-items: center; width: 26px; height: 26px; flex: none; background: white; color: #365783; border: 1px solid #bfcee4; border-radius: 50%; font-size: 12px; }
.overview-relations h3 { font-size: 17px; line-height: 1.4; font-weight: 600; margin: 1px 0 8px; }
.overview-relations p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }
.overview-objects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.overview-object { border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; scroll-margin-top: 120px; }
.overview-object:target { border-color: var(--blue); background: #fafcff; }
.object-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: var(--night); }
.object-heading .condition-icon { color: var(--blue); }
.object-heading h3 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; }
.overview-object>p,.overview-object li { font-size: 16px; line-height: 1.6; color: var(--muted); }
.overview-object h4 { margin: 3px 0 7px; font-size: 14px; font-weight: 600; }
.overview-object ul { margin: 0 0 24px; padding-left: 20px; }
.overview-object li { padding-left: 3px; margin-bottom: 5px; }
.object-status { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: #365783; }
.object-status.proposal { color: #714296; }
.object-status p { color: #65758b; margin: 6px 0 0; overflow-wrap: anywhere; }
.overview-note { border-left: 3px solid #8498b9; padding: 20px 24px; margin: 28px 0 20px; background: #f3f6fb; }
.overview-note p { margin: 0; font-size: 16px; }
.overview-compatibility { border-radius: 10px; }
.overview-compatibility th { background: #e9eff9; color: var(--night); }
.overview-compatibility td { background: white; line-height: 1.55; }
.overview-compatibility td:first-child { font-weight: 600; color: var(--night); width: 20%; }
.overview-github-banner { display: flex; align-items: center; gap: 24px; padding: 28px 30px; margin: 0 0 10px; background: #eef3fc; border: 1px solid #cbd9ee; border-radius: 14px; }
.overview-github-mark { flex: none; display: grid; place-items: center; width: 58px; height: 58px; background: white; color: var(--night); border-radius: 13px; border: 1px solid #d8e2f2; }
.overview-github-mark svg { width: 32px; height: 32px; }
.overview-github-copy { flex: 1; min-width: 0; }
.overview-github-copy h2 { margin: 5px 0 9px; font-size: 26px; line-height: 1.25; font-weight: 600; }
.overview-github-copy p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.overview-github-copy .overview-github-label { color: #365783; font-size: 11px; letter-spacing: .09em; font-weight: 600; }
.overview-github-banner .button { flex: none; white-space: nowrap; }
.project-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 17px; }
.project-badges a { display: inline-flex; max-width: 100%; border-radius: 3px; }
.project-badges a:hover { opacity: .86; }
.project-badges img { display: block; height: 20px; max-width: 100%; object-fit: contain; }
@media(max-width:760px) {
  .overview-github-banner { align-items: start; flex-wrap: wrap; gap: 18px; padding: 22px; }
  .overview-github-mark { width: 44px; height: 44px; }
  .overview-github-mark svg { width: 27px; height: 27px; }
  .overview-github-copy { flex-basis: calc(100% - 62px); }
  .overview-github-copy h2 { font-size: 23px; }
  .overview-github-banner .button { width: 100%; justify-content: center; }
  .overview-cycle { grid-template-columns: 1fr; gap: 20px; }
  .overview-cycle li { display: flex; gap: 16px; align-items: baseline; }
  .overview-cycle li:not(:last-child):after { display: none; }
  .overview-cycle span { margin: 0; }
  .overview-relations,.overview-objects { grid-template-columns: 1fr; }
  .overview-object { padding: 22px; }
  .overview-object ul { padding-left: 18px; }
  .object-heading h3 { font-size: 23px; }
  .overview-map-scroll { padding-inline: 15px; }
  .overview-subtitle { font-size: 23px; margin-top: 30px; }
  .overview-compatibility table { min-width: 650px; }
}
