/*
 * Mainframe technology section styles
 * Consolidated from per-page inline <style> blocks. All selectors are
 * mainframe-specific (.mf-* / .mainframe-*) and used only within
 * content/en/technologies/mainframe/.
 * Loaded per-page via <link rel="stylesheet" href="/css/mainframe.css">.
 */


/* ===== Section landing page (_index.md) ===== */
.mainframe-start {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid #b7e4c7;
  border-left: 0.45rem solid #2d6a4f;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #f1fbf4 0%, #ffffff 72%);
  box-shadow: 0 0.35rem 1rem rgba(27, 67, 50, 0.08);
}
.mainframe-start-title {
  margin: 0 0 0.35rem;
  color: #1b4332;
  font-size: 1.08rem;
  font-weight: 800;
}
.mainframe-coverage {
  border-color: #bfdbfe;
  border-left-color: #1d4ed8;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
  box-shadow: 0 0.35rem 1rem rgba(30, 64, 175, 0.08);
}
.mainframe-coverage .mainframe-start-title {
  color: #1e3a8a;
}
.mainframe-start p {
  margin: 0 0 0.7rem;
}
.mainframe-start-link {
  display: inline-block;
  padding: 0.42rem 0.72rem;
  border-radius: 0.45rem;
  color: #ffffff;
  background: #2d6a4f;
  font-weight: 700;
  text-decoration: none;
}
.mainframe-start-link:hover,
.mainframe-start-link:focus {
  color: #ffffff;
  background: #1b4332;
  text-decoration: none;
}
.mainframe-coverage .mainframe-start-link {
  background: #1d4ed8;
}
.mainframe-coverage .mainframe-start-link:hover,
.mainframe-coverage .mainframe-start-link:focus {
  background: #1e3a8a;
}
.mainframe-workflow {
  border-color: #bfdbfe;
  border-left-color: #5826e2;
  background: #ffffff;
  box-shadow: 0 0.35rem 1rem rgba(129, 43, 229, 0.08);
}
.mainframe-workflow .mainframe-start-title {
  color: #5826e2;
}
.mainframe-workflow .diagram-wrap {
  margin-top: 1rem;
}
.diagram-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}
.mainframe-diagram-entry {
  grid-column: 1 / -1;
}
.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.hotspot {
  position: absolute;
  z-index: 10;
  padding: 0.42rem 0.72rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: all 0.2s ease;
}
.hotspot:hover,
.hotspot:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  text-decoration: none;
}
.corner-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 200px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: ellipse(95% 100% at 100% 0%);
}
.corner-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #dbeafe;
  z-index: -1;
}
.corner-badge > * {
  position: relative;
  transform: translate(46px, 0);
}
.title-corner-badge {
  font-weight: 700;
  font-size: clamp(30px, 4vw, 56px);
  color: #1d4ed8;
  line-height: 1;
  margin-bottom: 10px;
}
.title-corner-badge.small {
  font-size: clamp(26px, 3.5vw, 48px);
}
.pill-corner-badge {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid #1d4ed8;
  border-radius: 999px;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}
.hs-source-qualif-mainframe { left: 12%; top: 5%; }
.hs-analyzer-mainframe { left: 62%; top: 52%; }
.hs-pdsdumps-extractor { left: 29%; top: 14%; }
.hs-converters-mainframe { left: 40%; top: 63%; }
.hs-files-mainframe { left: 20%; top: 53%; }
.hs-pdsdumps { left: 40%; top: 26%; }
.hs-files-extractors-mainframe { left: 0%; top: 37%; }
.hs-kb { left: 82%; top: 80%; }
@media (max-width: 900px) {
  .hotspot {
    position: static;
    display: inline-block;
    margin: 0.25rem 0.25rem 0 0;
    background: #1d4ed8;
  }
  .corner-badge {
    display: none;
  }
}

/* ===== Ecosystem page (ecosystem/_index.md) ===== */
/* UNUSED pending removal (build check): 'map/pill' component + its :root
   custom properties. No page markup references these classes; the ecosystem
   page uses the .mf-architecture diagram instead.

:root {
  --mf-border: #d8dee8;
  --mf-muted: #5d6675;
  --mf-bg: #f7f9fc;
  --mf-blue: #2459a6;
  --mf-green: #237a57;
  --mf-orange: #ad641f;
  --mf-purple: #6f42c1;
  --mf-red: #a33b3b;
}
.mf-map {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}
.mf-row {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 0.75rem;
  align-items: stretch;
}
.mf-layer {
  border: 1px solid var(--mf-border);
  border-left: 5px solid var(--mf-blue);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
  font-weight: 700;
}
.mf-items {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--mf-border);
  border-radius: 8px;
  padding: 0.6rem;
  background: var(--mf-bg);
}
.mf-pill {
  display: inline-block;
  border: 1px solid var(--mf-border);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  background: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
}
.mf-pill.primary { border-color: #b8c8e6; color: var(--mf-blue); font-weight: 700; }
.mf-pill.data { border-color: #b9dacd; color: var(--mf-green); font-weight: 700; }
.mf-pill.integration { border-color: #efd2b7; color: var(--mf-orange); font-weight: 700; }
.mf-pill.platform { border-color: #d3c2ea; color: var(--mf-purple); font-weight: 700; }
.mf-note {
  border-left: 4px solid var(--mf-blue);
  padding: 0.75rem 1rem;
  background: var(--mf-bg);
  margin: 1rem 0;
}
.mf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
}
.mf-card {
  border: 1px solid var(--mf-border);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fff;
}
.mf-card h3 {
  margin-top: 0;
}
.mf-legend {
  color: var(--mf-muted);
  font-size: 0.92rem;
}
*/
.mf-architecture {
  border: 2px solid #555;
  box-sizing: border-box;
  max-width: 760px;
  padding: 1rem;
  margin: 1.25rem 0 1.75rem;
  background: #fff;
}
.mf-architecture-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.mf-architecture-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.mf-architecture-box,
.mf-architecture-db,
.mf-architecture-files {
  background: #777;
  color: #fff;
  text-align: center;
  padding: 0.75rem;
  box-sizing: border-box;
  border-radius: 4px;
  flex: 1;
  font-size: 0.95rem;
}
.mf-architecture-box.active,
.mf-architecture-db.active,
.mf-architecture-files.active {
  background: #287a4b;
}
.mf-architecture-lang {
  width: 100%;
  margin-bottom: 0.65rem;
}
.mf-architecture-db {
  min-height: 4.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
  padding: 0.85rem 0.75rem;
  margin: 0.65rem 0;
  border-radius: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.55);
  border-right: 2px solid rgba(255, 255, 255, 0.55);
}
.mf-architecture-db::before,
.mf-architecture-db::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  height: 1.3rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: inherit;
  box-sizing: border-box;
  pointer-events: none;
}
.mf-architecture-db::before {
  top: -0.65rem;
  z-index: 2;
}
.mf-architecture-db::after {
  bottom: -0.65rem;
  clip-path: inset(50% 0 0 0);
  z-index: 0;
}
.mf-architecture-db b,
.mf-architecture-files b {
  position: relative;
  z-index: 3;
}
.mf-architecture-files {
  min-height: 4.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 0 100%);
}
.mf-architecture-files::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  background: rgba(255, 255, 255, 0.32);
  border-left: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  box-sizing: border-box;
}
.mf-status {
  display: inline-block;
  padding: 0.18rem 0.48rem;
  border-radius: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}
.mf-status-detected,
.mf-status-product {
  color: #0f3d24;
  background: #d8f3dc;
  border: 1px solid #95d5b2;
}
.mf-status-detected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border-radius: 0.35rem;
  font-size: 0.95rem;
}
.mf-status-lab {
  color: #5c3d00;
  background: #fff3bf;
  border: 1px solid #ffd43b;
}
.mf-status-high-dark {
  color: #ffffff;
  background: #166534;
  border: 1px solid #14532d;
}
.mf-status-high {
  color: #0f3d24;
  background: #b7efc5;
  border: 1px solid #74c69d;
}
.mf-status-partial {
  color: #24532d;
  background: #e9f8ec;
  border: 1px solid #b7e4c7;
}
.mf-status-no {
  color: #3f3f46;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
}
.mf-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.35rem;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}
.mf-check-mark {
  font-size: 0.95rem;
  line-height: 1;
}
.mf-no-link {
  color: #9ca3af;
}
.mf-architecture + table th:nth-child(4),
.mf-architecture + table td:nth-child(4) {
  width: 20%;
}
.mf-architecture + table th:nth-child(3),
.mf-architecture + table td:nth-child(3) {
  width: 48%;
}
.mf-priority-list {
  margin: 0;
  padding-left: 1.15rem;
}
.mf-priority-list li + li {
  margin-top: 0.35rem;
}
.mf-banner {
  border-radius: 0.55rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  font-weight: 600;
}
.mf-banner-orange {
  border: 1px solid #fdba74;
  border-left: 0.45rem solid #f97316;
  background: #fff7ed;
  color: #7c2d12;
}
.mf-banner-red {
  border: 1px solid #fca5a5;
  border-left: 0.45rem solid #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}
@media (max-width: 760px) {
  /* UNUSED pending removal (build check): .mf-row (map component)
  .mf-row {
    grid-template-columns: 1fr;
  }
  */
  .mf-architecture-row {
    flex-direction: column;
  }
}

/* ===== Expected Input page (expected-input/_index.md) ===== */
.mf-factsheet {
  position: relative;
  margin: 1rem 0 1.5rem;
  padding: 0;
}
.mf-factsheet::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.65rem;
  width: 1px;
  background: #d1d5db;
}
.mf-fact {
  position: relative;
  margin: 0;
  padding: 0;
}
.mf-fact::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0.65rem;
  width: 1.15rem;
  height: 1px;
  background: #d1d5db;
}
.mf-node-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.35rem 1.25rem minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.2rem 0.35rem 0.2rem 0;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(90deg, transparent 0 1.9rem, #fff 1.9rem);
}
.mf-node-row:hover {
  background: linear-gradient(90deg, transparent 0 1.9rem, #f8fafc 1.9rem);
}
.mf-node-toggle {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  z-index: 1;
}
.mf-node-toggle::before {
  content: "›";
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.mf-node-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}
.mf-node-toggle:focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid #15803d;
  outline-offset: 2px;
}
.mf-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: #16a34a;
  cursor: pointer;
  z-index: 1;
}
.mf-check-input:focus-visible {
  outline: 2px solid #15803d;
  outline-offset: 2px;
}
.mf-platform-icon {
  display: none;
}
.mf-fact h4 {
  margin: 0;
  color: #374151;
  font-size: 1rem;
}
.mf-fact:has(.mf-check-input:checked) h4 {
  color: #166534;
}
.mf-fact:has(.mf-check-input:checked) .mf-node-row {
  background: linear-gradient(90deg, transparent 0 1.9rem, #f0fdf4 1.9rem);
}
.mf-node-label {
  cursor: pointer;
  min-width: 0;
}
.mf-extraction-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 0.75rem;
  white-space: nowrap;
}
.mf-extraction-option {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.4rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  color: #4b5563;
}
.mf-extraction-check {
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 900;
}
.mf-extraction-unavailable {
  color: #9ca3af;
}
.mf-node-body {
  position: relative;
  margin-left: 0.65rem;
  padding: 0.65rem 0 0.9rem 2.35rem;
  border-left: 1px solid #d1d5db;
}
.mf-node-description,
.mf-node-what-to-do {
  margin: 0 0 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #fff;
}
.mf-node-description {
  background: #f8fafc;
}
.mf-node-what-to-do {
  border-left: 0.25rem solid #16a34a;
}
.mf-node-body h5 {
  margin: 0 0 0.35rem;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mf-node-body p {
  margin: 0 0 0.45rem;
}
.mf-node-body p:last-child {
  margin-bottom: 0;
}
.mf-platform-panels {
  margin: 0;
}
.mf-platform-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.mf-node-what-to-do > .mf-platform-panel > h4 {
  display: none;
}
.mf-platform-panel ol {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}
.mf-platform-panel li {
  margin-bottom: 0.35rem;
}
.mf-platform-panel li:last-child {
  margin-bottom: 0;
}
.mf-platform-panel pre {
  overflow-x: auto;
  padding: 0.85rem;
  border-radius: 0.45rem;
  background: #0f172a;
  color: #e5e7eb;
}
.mf-platform-panel code {
  font-size: 0.92em;
}
.mf-support-warning {
  margin: 0.65rem 0 1rem;
  padding: 0.8rem 0.9rem;
  border-left: 0.3rem solid;
  font-weight: 700;
}
.mf-support-warning-priority-2 {
  border-left-color: #f97316;
  background: #fff7ed;
  color: #9a3412;
}
.mf-support-warning-priority-3 {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}
.mf-support-warning p {
  margin: 0;
}
.mf-support-warning p + p {
  margin-top: 0.65rem;
}
.mf-other-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin: 0.35rem 0 1rem;
  padding: 0;
  list-style: none;
}
.mf-other-platforms li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.mf-other-platforms label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}
.mf-other-platforms input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  accent-color: #16a34a;
}
@media (max-width: 38rem) {
  .mf-factsheet::before,
  .mf-fact::before {
    display: none;
  }
  .mf-node-body {
    margin-left: 0.4rem;
    padding-left: 1.5rem;
  }
  .mf-node-row {
    grid-template-columns: 1.35rem 1.25rem minmax(0, 1fr);
    padding: 0.25rem 0;
  }
  .mf-node-row > .mf-extraction-summary {
    grid-column: 3;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
  }
  .mf-other-platforms {
    grid-template-columns: 1fr;
  }
  .mf-other-platforms label {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* ===== Versioned results pages (extensions/com.castsoftware.mainframe/<version>/results) ===== */
.mf-version-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.08rem 0.34rem;
  border-radius: 999px;
  color: #6f42c1;
  background: #f7f1ff;
  border: 1px solid #6f42c1;
  font-size: 0.62em;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: middle;
  white-space: nowrap;
}

