/*
 * THE PROCESS LANDSCAPE — the organisation's own design, reproduced.
 *
 * The layout, sizes and palette below are the customer's approved landscape prototype
 * (L0_Navigation_Demo.html, its branch screens' approved-baseline.css and branch.css, 7–8 Oct
 * 2026): the L0 map with its core chevrons and support tiles inside the Customer Expectations →
 * Customer Satisfaction arrows, the six equal level boxes, the breadcrumb, the framed title band,
 * the chevron list and the exact-source-fields disclosure. Their final, cascaded values are
 * written out here once, scoped under .landscape so the library's own styles are untouched.
 * The "In TheBridge" panel is ours (their prototype had no live processes) and uses the
 * shell's tokens.
 */
.landscape {
  /* The organisation's brand when it set one (theme.js --landscape-*, AA-darkened for white text); else the prototype's teal. */
  --ls-teal: var(--landscape-core, #00a995);
  --ls-side: var(--landscape-side, var(--landscape-core, #00a995));
  --ls-slate: #5a5b5d;
  --ls-black: #231f20;
  --ls-white: #ffffff;
  --ls-line: #d9dcdd;
  --ls-paper: #f3f4f4;
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  color: var(--ls-black);
  font-size: 16px;
  line-height: 1.45;
  margin-top: 8px;
}
.landscape[hidden] { display: none; }
/* A node is being read (landscape.js route): the page answers the click at once. */
.landscape[aria-busy="true"] .process-list, .landscape[aria-busy="true"] .map { opacity: 0.55; cursor: progress; }
.landscape a { color: inherit; }
.landscape a:focus-visible, .landscape button:focus-visible, .landscape summary:focus-visible { outline: 3px solid var(--ls-black); outline-offset: 5px; }

/* Six equal level boxes: L0 Value Chain … L5 Task. */
.landscape .levels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: stretch; padding: 6px 0 10px; }
.landscape .level { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 54px; padding: 8px 10px; text-align: center; line-height: 1.3; font-size: 12px; border: 1px solid var(--ls-line); background: var(--ls-paper); color: var(--ls-slate); text-decoration: none; overflow-wrap: anywhere; }
.landscape .level strong { font-size: 12px; line-height: 1.2; font-weight: 700; }
.landscape .level.active { background: var(--ls-teal); border-color: var(--ls-teal); color: var(--ls-white); font-weight: 700; }
.landscape .level.active strong { color: var(--ls-white); }
.landscape .level.ancestor { background: var(--ls-paper); color: var(--ls-black); }
.landscape a.level.ancestor:hover { outline: 2px solid var(--ls-teal); outline-offset: 1px; }

/* L0: the value chain map. */
.landscape .map { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; border: 1px solid var(--ls-slate); background: var(--ls-paper); }
.landscape .value-chain-side { position: relative; min-width: 0; align-self: stretch; overflow: visible; }
.landscape .value-chain-side svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.landscape .value-chain-side polygon { fill: var(--ls-side); }
.landscape .value-chain-side span { position: absolute; left: 39%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; color: var(--ls-white); font-size: 21px; line-height: 1.2; font-weight: 400; letter-spacing: 0.15px; }
.landscape .canvas { padding: 12px 17px; min-width: 0; }
.landscape .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 9px; }
.landscape .section-heading h2 { font-size: 14px; letter-spacing: 0.1px; margin: 0; font-weight: 700; }
.landscape .core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 17px; }
.landscape .core-unit { min-width: 0; }
.landscape .core-unit:first-child, .landscape .core-unit:nth-child(2) { grid-column: span 3; }
.landscape .core-main { position: relative; display: flex; align-items: center; justify-content: center; height: 64px; min-height: 64px; padding: 9px 20px 9px 12px; background: var(--ls-teal); color: var(--ls-white); text-decoration: none; text-align: center; border: 1px solid var(--ls-slate); border-right: 0; }
/* The tip reaches 1px back over the body: butted edge to edge, zooming out (90%, 67%) rounded the
   two apart and drew a white seam down every chevron (the customer's review, 2026-10-27: "when you
   zoom out ... like a white band there"). The tip still shows 12px beyond the body. */
.landscape .core-main:after { content: ""; position: absolute; right: -12px; top: 50%; width: 0; height: 0; border-top: 33px solid transparent; border-bottom: 33px solid transparent; border-left: 13px solid var(--ls-teal); transform: translateY(-50%); }
.landscape .core-main:hover { box-shadow: inset 0 0 0 2px var(--ls-black); }
.landscape .core-name { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.22; }
.landscape .process-ref { display: inline; white-space: nowrap; font-size: 0.9em; font-weight: inherit; color: inherit; opacity: 0.85; }
.landscape .process-tail { white-space: nowrap; }
.landscape .support-section { border: 1px dashed var(--ls-slate); background: var(--ls-white); margin-top: 12px; padding: 10px 15px; }
.landscape .support-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 14px; }
.landscape .support-unit { min-width: 0; display: flex; flex-direction: column; }
.landscape .support-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 96px; padding: 9px; border: 1px solid var(--ls-line); background: var(--ls-paper); text-decoration: none; }
.landscape .support-main:hover { outline: 2px solid var(--ls-teal); outline-offset: 1px; }
.landscape .support-name { display: block; font-size: 14px; line-height: 1.25; font-weight: 650; }

/* L1–L5: one node, framed, with what sits under it. */
.landscape .breadcrumb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ls-slate); line-height: 1.4; padding: 6px 0 18px; }
.landscape .breadcrumb a { color: var(--ls-black); text-decoration: none; overflow-wrap: anywhere; }
.landscape .breadcrumb a:hover { text-decoration: underline; }
.landscape .breadcrumb .sep { color: var(--ls-slate); }
.landscape .process-frame { border: 1px solid var(--ls-slate); background: var(--ls-paper); padding: 22px 26px 26px; margin-bottom: 18px; }
.landscape .context-band { display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 18px 24px; background: var(--ls-white); border: 1px solid var(--ls-line); text-align: center; color: var(--ls-black); font-size: 23px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.landscape .context-band .process-ref { font-size: 1em; opacity: 0.8; }
.landscape .section-label { font-size: 17px; font-weight: 700; margin: 22px 0 16px; color: var(--ls-black); letter-spacing: -0.2px; }
.landscape .scope-line { font-size: 12px; line-height: 1.6; color: var(--ls-slate); margin: 14px 0; }
/* Every entry on the page, never a box that scrolls inside it (the customer's review, 2026-10-27). */
.landscape .process-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 22px; padding: 4px 22px 6px 2px; }
.landscape .process-entry { position: relative; display: flex; align-items: center; justify-content: center; min-height: 82px; padding: 16px 30px; text-align: center; background: var(--ls-teal); border: 1px solid var(--ls-slate); border-right: 0; text-decoration: none; color: var(--ls-white); font-size: 22px; font-weight: 400; line-height: 1.3; overflow: visible; }
.landscape .process-entry:after { content: ""; position: absolute; right: -15px; top: 0; bottom: 0; width: 16px; background: var(--ls-teal); clip-path: polygon(0 0, 1px 0, 100% 50%, 1px 100%, 0 100%); }
.landscape .process-entry .process-ref { font-size: 1em; opacity: 1; }
.landscape .process-entry:hover { box-shadow: inset 0 0 0 2px var(--ls-black); }
.landscape .process-entry:focus-visible { outline-offset: 1px; }
.landscape .node-title { overflow-wrap: anywhere; }
.landscape .task-wording { padding: 8px; font-size: 22px; font-weight: 400; line-height: 1.5; margin: 20px 0; overflow-wrap: anywhere; }
.landscape .branch-return { display: inline-block; padding: 10px 14px; border: 1px solid var(--ls-line); text-decoration: none; background: var(--ls-white); font-size: 14px; margin-top: 6px; }
.landscape .source-details { border: 1px solid var(--ls-line); padding: 16px 20px; font-size: 14px; margin: 18px 0; background: var(--ls-white); }
.landscape .source-details summary { cursor: pointer; font-weight: 650; padding: 3px 0; }
.landscape .source-fields { width: 100%; border-collapse: collapse; margin: 16px 0; table-layout: fixed; font-size: 14px; line-height: 1.5; }
.landscape .source-fields th { width: 180px; background: var(--ls-paper); text-align: left; font-weight: 650; }
.landscape .source-fields th, .landscape .source-fields td { border: 1px solid var(--ls-line); padding: 12px; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; }

/* Ours: the TheBridge processes that sit at a node, and placing them. */
.landscape .in-thebridge { border: 1px solid var(--line, var(--ls-line)); border-left: 4px solid var(--ls-teal); background: var(--surface, #fff); padding: 14px 18px; margin: 0 0 18px; font-family: inherit; }
.landscape .in-thebridge h2 { font-size: 15px; margin: 0 0 10px; }
.landscape .in-thebridge ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.landscape .in-thebridge li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.landscape .in-thebridge .placed-link { font-weight: 650; }
.landscape .in-thebridge .placed-status { font-size: 12px; color: var(--ls-slate); border: 1px solid var(--ls-line); padding: 1px 7px; }
.landscape .in-thebridge .placed-reason { flex-basis: 100%; font-size: 13px; color: var(--ls-slate); }
.landscape .in-thebridge .empty-line { margin: 0 0 10px; font-size: 14px; color: var(--ls-slate); }
.landscape .in-thebridge .place-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.landscape .in-thebridge select { max-width: 100%; min-width: 0; }
.landscape .in-thebridge .note { flex-basis: 100%; font-size: 13px; color: var(--ls-slate); }
.landscape .landscape-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 14px 0 0; font-size: 13px; color: var(--ls-slate); }
.landscape .proposal-list { margin: 12px 0 0; }
.landscape .proposal-list li { padding: 8px 0; border-top: 1px solid var(--ls-line); }
.landscape .landscape-error { color: #a4262c; font-size: 14px; }
/* Admin → Process map: the page says the tools are open, and Done closes them. */
.landscape .landscape-managing { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line, var(--ls-line)); border-left: 4px solid var(--ls-teal); background: var(--surface, #fff); font-size: 14px; }
.landscape .landscape-managing span { color: var(--ls-slate); }
.landscape .landscape-managing a { margin-left: auto; padding: 6px 14px; border: 1px solid var(--ls-line); border-radius: 8px; text-decoration: none; background: var(--ls-white); }

/* A task's own map (L5): start → steps → end, in the frame where the task's wording was. It
   scrolls sideways inside itself when it is wider than the frame; the page never does. */
.landscape .task-map { margin: 20px 0 0; }
.landscape .task-map-scroll { overflow-x: auto; overflow-y: hidden; background: var(--ls-white); border: 1px solid var(--ls-line); padding: 6px 0; }
.landscape .task-map-canvas { position: relative; margin: 0 auto; }
.landscape .task-map-canvas svg { position: absolute; inset: 0; overflow: visible; }
.landscape .task-map-canvas svg path { fill: none; stroke: var(--ls-slate); stroke-width: 1.6; }
.landscape .task-map-canvas svg marker path { fill: var(--ls-slate); stroke: none; }
.landscape .task-map-canvas svg text { font-size: 12px; fill: var(--ls-slate); }
.landscape .task-map-step { position: absolute; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.landscape .task-map-step.task { background: var(--ls-teal); color: var(--ls-white); border: 1px solid var(--ls-slate); border-radius: 8px; padding: 6px 10px; text-align: center; }
.landscape .task-map-name { font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.landscape .task-map-step.start { border-radius: 50%; border: 2px solid var(--ls-teal); background: var(--ls-white); }
.landscape .task-map-step.end { border-radius: 50%; border: 4px solid var(--ls-black); background: var(--ls-white); }
.landscape .task-map-step.decision::before { content: ""; position: absolute; inset: 7px; transform: rotate(45deg); border: 2px solid var(--ls-slate); background: var(--ls-paper); }
.landscape .task-map-label { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 140px; text-align: center; font-size: 12px; line-height: 1.25; color: var(--ls-black); overflow-wrap: anywhere; }
.landscape .task-map figcaption { margin-top: 10px; font-size: 14px; color: var(--ls-slate); }
.landscape .task-map figcaption a { color: var(--ls-black); font-weight: 650; }

/* A node's details: a panel to the right of the frame, closed until opened; below it on a phone. */
.landscape .node-tools { display: flex; justify-content: flex-end; margin: -6px 0 8px; }
.landscape .details-toggle { border: 1px solid var(--ls-line); background: var(--ls-white); padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.landscape .details-toggle[aria-expanded="true"] { border-color: var(--ls-teal); box-shadow: inset 0 -3px 0 var(--ls-teal); }
.landscape .node-layout.details-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 18px; align-items: start; }
.landscape .node-layout.details-open .process-frame { min-width: 0; }
.landscape .node-details { border: 1px solid var(--ls-line); background: var(--ls-white); padding: 14px 16px 16px; font-size: 14px; position: sticky; top: 12px; margin-bottom: 18px; }
.landscape .node-details[hidden] { display: none; }
.landscape .node-details-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.landscape .node-details h2 { font-size: 16px; margin: 0; }
.landscape .node-details h2:focus { outline: none; }
.landscape .node-details-head button { font-size: 20px; line-height: 1; padding: 2px 8px; }
.landscape .node-details h3 { font-size: 14px; margin: 16px 0 6px; }
.landscape .node-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 12px 0 0; }
.landscape .node-facts dt { color: var(--ls-slate); }
.landscape .node-facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.landscape .details-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.landscape .details-list li { overflow-wrap: anywhere; }
.landscape .details-clauses { display: block; color: var(--ls-slate); font-size: 13px; }
.landscape .details-ref { font-weight: 650; }
.landscape .details-from, .landscape .details-empty { color: var(--ls-slate); font-size: 13px; }
.landscape .details-empty { margin: 0; }

@media (max-width: 1050px) and (min-width: 681px) {
  .landscape .support-name { font-size: 13px; }
  .landscape .core-name { font-size: 15px; }
}
@media (max-width: 680px) {
  .landscape .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .landscape .level { min-height: 64px; }
  .landscape .map { grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .landscape .value-chain-side span { font-size: 18px; }
  .landscape .canvas { padding: 12px 10px; }
  .landscape .core-grid { grid-template-columns: 1fr; gap: 13px; }
  .landscape .core-unit:first-child, .landscape .core-unit:nth-child(2) { grid-column: auto; }
  .landscape .core-main { height: auto; min-height: 72px; }
  .landscape .core-name { font-size: 17px; }
  .landscape .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landscape .support-main { min-height: 108px; }
  .landscape .breadcrumb { font-size: 12px; gap: 8px; }
  .landscape .process-frame { padding: 18px 16px; }
  .landscape .context-band { font-size: 19px; min-height: 84px; }
  .landscape .process-entry { font-size: 18px; padding: 16px 24px; min-height: 82px; }
  .landscape .source-fields th { width: 120px; }
  .landscape .source-fields th, .landscape .source-fields td { padding: 10px; }
  .landscape .node-layout.details-open { display: block; }
  .landscape .node-details { position: static; }
}
@media (max-width: 420px) {
  .landscape .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The Landscape | Library switch above the page, with room under the page title (the customer's
   review, 2026-10-27: "give it some room"). Drawn as Documents' underlined tabs (.documents-status-tabs,
   documents.css; Sam, 2026-11-24): only its hiding is this file's. */
.process-view-tabs[hidden] { display: none; }

/* Managing the map (process administrators only): folded away, so the map reads as drawn. */
.node-manage { margin: 12px 0; border: 1px solid var(--line, #d7dde1); border-radius: 6px; padding: 8px 12px; background: var(--surface, #fff); }
.node-manage > summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.node-manage-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.node-manage-row label { font-size: 0.88rem; min-width: 12rem; }
.node-manage-row input { flex: 1 1 14rem; min-width: 0; padding: 6px 8px; }
.placement-review h3 { font-size: 0.98rem; margin: 16px 0 6px; }
.placement-review li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 6px 0; }
@media (max-width: 640px) { .node-manage-row label { min-width: 100%; } }
