/* Extracted repeated page-family styles: xroad-ariregister-overview.css */

/* xroad-ariregister-overview */
/** { margin: 0; padding: 0; }
  body { min-height: 100vh; }
  .max { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
   header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(8px);
  }
  .header-row { display: flex; align-items: center; justify-content: space-between; }
  .brand { display: flex; align-items: center; gap: 14px; }
  .brand-logo {
    width: 111px; background: var(--text);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    color: var(--green-bright); font-weight: 900; font-size: 14px;
  }
  .brand-logo-img { width: 111px; display: block; }
  .brand-text { font-weight: 700; letter-spacing: 0.04em; font-size: 14px; }
  .brand-text span { color: var(--text-dim); margin-left: 8px; font-weight: 400; }
  .breadcrumb { font-size: 12px; color: var(--text-dim); }
  .breadcrumb a { color: var(--purple); text-decoration: none; }
  .live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); margin-right: 8px;  } */

  .hero { padding: 64px 0 36px; }
  .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--purple); font-weight: 600; margin-bottom: 16px; }
  .hero h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.05em; color: var(--text); max-width: 1000px; font-weight: 700; }
  .hero h1 .accent { color: var(--purple); }
  .hero p.sub { font-size: 18px; color: var(--text-dim); margin-top: 20px; max-width: 820px; line-height: 1.6; font-weight: 300; }

  .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 44px 0 16px; }
  .stat { padding: 24px; background: var(--bg-2); border-radius: 4px; }
  .stat .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 600; margin-bottom: 10px; }
  .stat .val { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
  .stat .val.purple { color: var(--purple); }
  .stat .val.green { color: var(--green); }
  .stat .sub { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

  section { padding: 56px 0; border-top: 1px solid var(--line); }
  section h2 { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.03em; }
  section h2 .accent { color: var(--purple); }
  section p.intro { font-size: 15px; color: var(--text-dim); max-width: 820px; line-height: 1.6; margin-bottom: 36px;  font-weight: 300; }

  /* Cluster cards */
  .clusters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .cluster-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 24px 22px 22px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
    overflow: hidden;
    min-height: 420px;
  }
  .cluster-card.live { border-left: 4px solid var(--purple); }
  .cluster-card.live:hover { border-color: var(--purple); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(55,33,101,0.10); cursor: pointer; }
  .cluster-card.wip { opacity: 0.78; cursor: not-allowed; }
  .cluster-card.wip:hover { opacity: 0.92; }
  .cluster-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
  .cluster-card .tagline { font-size: 12px; color: var(--purple); font-style: italic; margin-bottom: 14px; }
  .cluster-card .num { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
  .cluster-card .num-sub { font-size: 11px; color: var(--text-dim); margin-top: 4px; margin-bottom: 14px; }
  .cluster-card .bar { width: 100%; height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
  .cluster-card .bar-fill { height: 100%; background: var(--purple); border-radius: 2px; }
  .cluster-card .blurb { font-size: 12px; color: var(--text-mid); line-height: 1.55; flex-grow: 1; }
  .cluster-card .visual {
    margin-top: 16px;
    background: var(--bg-2);
    border-radius: 4px;
    padding: 12px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .cluster-card .visual svg { width: 100%; height: 100%; }
  .cluster-card .cta {
    margin-top: 12px; font-size: 11px; color: var(--purple); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    display: flex; align-items: center; gap: 6px;
  }
  .cluster-card.wip .cta { color: var(--text-dim); }

  /* Top-services table */
  table.svcs { width: 100%; border-collapse: collapse; font-size: 13px; }
  table.svcs th { text-align: left; padding: 12px 10px; background: var(--text); color: #fff; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
  table.svcs th.r, table.svcs td.r { text-align: right; font-variant-numeric: tabular-nums; }
  table.svcs td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
  table.svcs tr:hover td { background: var(--bg-3); }
  table.svcs .svc-name { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--text); }
  table.svcs .sub { font-size: 11px; color: var(--text-dim); }
  table.svcs .cluster-pill {
    display: inline-block; padding: 2px 8px; font-size: 10px; font-weight: 600;
    border-radius: 2px; text-transform: uppercase; letter-spacing: 0.06em;
    background: var(--purple-tint); color: var(--purple);
  }
  table.svcs .cluster-pill a { color: var(--purple); text-decoration: none; }
  table.svcs .cluster-pill.compliance { background: rgba(0,150,57,0.10); color: var(--green); }
  table.svcs .cluster-pill.compliance a { color: var(--green); }
  table.svcs .barcell { position: relative; }
  table.svcs .barcell .bar { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 22px; background: var(--purple-tint); z-index: 0; border-radius: 2px; }
  table.svcs .barcell span { position: relative; z-index: 1; padding-left: 6px; }
  table.svcs tr.row { cursor: pointer; }
  table.svcs tr.row .chevron { display: inline-block; transition: transform 0.2s; color: var(--text-dim); margin-right: 8px; font-size: 10px; }
  table.svcs tr.row.open .chevron { transform: rotate(90deg); color: var(--purple); }
  table.svcs tr.detail td { padding: 0; border-bottom: 1px solid var(--line); }
  table.svcs tr.detail .panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; background: var(--bg-3); }
  table.svcs tr.detail.open .panel { max-height: 500px; }
  table.svcs tr.detail .panel-inner { padding: 22px 28px; }
  table.svcs .panel-grid { display: grid; grid-template-columns: 160px 1fr; gap: 14px 24px; }
  table.svcs .panel-grid .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 600; }
  table.svcs .panel-grid .v { font-size: 13px; line-height: 1.6; color: var(--text); }
  table.svcs .panel-grid .v code { background: var(--purple-tint); color: var(--purple); padding: 1px 6px; border-radius: 2px; font-size: 12px; }
  table.svcs .panel-grid .v.title { font-size: 15px; font-weight: 600; color: var(--purple); }
  table.svcs .panel-grid .v a { color: var(--purple); text-decoration: none; font-weight: 600; }

  /* Sankey */
  .sankey-wrap { background: var(--bg-2); border-radius: 4px; padding: 24px; position: relative; }
  .sankey-wrap svg { width: 100%; height: 580px; display: block; }
  .sankey-link { transition: stroke-opacity 0.2s; }
  .sankey-link:hover { stroke-opacity: 0.7; }
  .sankey-label { font-size: 12px; fill: var(--text); pointer-events: none; }
  .sankey-tooltip {
    position: absolute; background: var(--text); color: #fff;
    padding: 10px 14px; border-radius: 4px; font-size: 12px;
    pointer-events: none; opacity: 0; transition: opacity 0.15s;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18); max-width: 320px;
  }
  .sankey-tooltip strong { color: var(--green-bright); }

  /* Heatmap */
  .heatmap { background: var(--bg-2); padding: 24px; border-radius: 4px; }
  .heatmap .legend { display: flex; gap: 6px; margin-top: 12px; align-items: center; font-size: 11px; color: var(--text-dim); }
  .heatmap .legend .grad { width: 200px; height: 8px; background: linear-gradient(90deg, #F0EDFF, var(--purple-vivid), var(--purple-deep)); border-radius: 2px; }

  /* Insights cards */
  .insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .insight { padding: 28px; background: var(--text); color: #fff; border-radius: 4px; }
  .insight .num { font-size: 36px; font-weight: 700; color: var(--green-bright); margin-bottom: 8px; letter-spacing: -0.02em; line-height: 1; }
  .insight h4 { font-size: 14px; margin-bottom: 8px; }
  .insight p { font-size: 12px; color: rgba(255,255,255,0.78); line-height: 1.55; }

  footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 12px; text-align: center; }
  footer a { color: var(--purple); text-decoration: none; }
  footer strong { color: var(--text-mid); }

  @media (max-width: 1100px) {
    .clusters { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 720px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .clusters, .insights { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
  }
  a.brand { text-decoration: none; color: inherit; cursor: pointer; }
  a.brand:hover .brand-text { color: var(--purple); }
    .cluster-card .num-unit { font-size: 14px; color: var(--text-dim); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
