/* The DesignOps pages: the map of topics, and a topic's own page.
   Built on site.css and resources.css. */

/* a part (how we work together, ...) and its three groups */
.part { margin-bottom: clamp(48px, 8vh, 72px); }
.part h2 { margin: 0 0 24px; font: 600 clamp(20px, 3vw, 26px)/1.2 var(--sans); letter-spacing: -0.02em; }
.groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px clamp(24px, 4vw, 56px);
}
@media (min-width: 720px) { .groups { grid-template-columns: repeat(3, 1fr); } }
.group h3 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font: 600 16px/1.2 var(--sans);
}
.group ul { margin: 0; padding: 12px 0 0; list-style: none; }
.group li + li { margin-top: 2px; }

/* a topic: its icon and its name */
.group a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  text-decoration: none;
}
.group a span, .group a { text-underline-offset: 4px; }
.group a:hover, .group a:focus-visible { text-decoration: underline; }
/* each topic's own pixel icon, 12 by 12; it inks in on hover */
.pi { flex: none; fill: currentColor; color: rgba(0, 0, 0, 0.6); }
.group a:hover .pi, .group a:focus-visible .pi { color: var(--ink); }
/* on a topic's own page the icon stands large over its name, pixels and all */
.head > .pi { display: block; margin: 0 0 36px; color: var(--ink); }
.head > .back + .pi { margin-top: 16px; }

/* the switch between the two views: List, Mind map */
.views { display: inline-flex; margin: 0 0 36px; outline: 1px solid var(--ink); }
.view-btn {
  padding: 8px 12px 7px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: 12px/1 var(--mono);
  -webkit-tap-highlight-color: transparent;
}
.view-btn + .view-btn { border-left: 1px solid var(--ink); }
html:not(.js) .views { display: none; }   /* the map needs script; the list does not */
.view-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.view-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* the mind map: drawn from the list, in a box you can drag and zoom */
.mm { position: relative; height: max(480px, 74vh); margin: 0 0 56px; background: var(--paper); overflow: hidden; }
.mm-svg { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.mm-svg.grabbing { cursor: grabbing; }
.br { fill: none; stroke: var(--ink); stroke-linecap: round; shape-rendering: crispEdges; transition: stroke-width 0.15s; }
.br-p { stroke-width: 3; }
.br-g { stroke-width: 2; }
.br-t { stroke-width: 1.2; }
.br.hot { stroke-width: 3.2; }
.ring { fill: var(--paper); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; shape-rendering: crispEdges; }
.center text { font: 600 26px var(--sans); letter-spacing: -0.02em; fill: var(--ink); }
.part text { font: 600 16px var(--sans); fill: var(--ink); }
.group rect { fill: var(--ink); }
.group text { font: 11px var(--mono); fill: var(--paper); }
.topic { cursor: inherit; }
.topic text { font: 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.topic .tip { fill: var(--ink); }
.topic:hover text, .topic:focus-visible text { font-weight: 600; text-decoration: underline; }
.topic:focus-visible { outline: none; }
.mm-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 4px; }
.mm-zoom button { width: 34px; height: 30px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 16px/1 var(--mono); }
.mm-zoom button[data-z="fit"] { font-size: 10px; }
.mm-zoom button:hover { background: var(--ink); color: var(--paper); }
.mm-hint { position: absolute; left: 12px; bottom: 10px; margin: 0; font: 11px/1 var(--mono); color: rgba(0, 0, 0, 0.5); pointer-events: none; }

/* the offer: a three-month setup, then optional monthly advisory; priced on request */
.offer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 48px;
  margin: clamp(24px, 6vh, 56px) 0 72px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
}
@media (min-width: 820px) { .offer { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.offer-kicker { margin: 0 0 12px; font: 12px/1 var(--mono); color: rgba(0, 0, 0, 0.6); }
.offer h2 { margin: 0; max-width: 16ch; font: 600 clamp(26px, 3.6vw, 38px)/1.08 var(--sans); letter-spacing: -0.03em; }
.offer-lead { margin: 14px 0 0; max-width: 52ch; color: rgba(0, 0, 0, 0.65); }
/* one headline only: the side is a quiet footnote and the button */
.offer-side { display: grid; gap: 14px; justify-items: start; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.15); }
@media (min-width: 820px) { .offer-side { padding: 0 0 0 32px; border-top: 0; border-left: 1px solid rgba(0, 0, 0, 0.15); } }
.offer-note { margin: 0; max-width: 32ch; font-size: 15px; line-height: 1.5; color: rgba(0, 0, 0, 0.65); }
.offer-cta {
  margin-top: 8px;
  padding: 12px 16px 11px;
  font: 13px/1 var(--mono);
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.offer-cta:hover, .offer-cta:focus-visible { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); }

/* a topic's own page: where it sits on the map */
.head .crumb { margin: 0 0 22px; font: 12px/1 var(--mono); color: rgba(0, 0, 0, 0.6); }
.crumb ~ h1 { line-height: 1.05; }
.crumb ~ h1 + p { margin-top: 22px; }
