
/* group-dynamic-saas-urls figures. This article-local stylesheet loads after resources.css.
   Replaces dynamic-url-grouping-pipeline.svg, dynamic-url-b2b-collapse.svg,
   and url-grouping-rule-precedence.svg. */

.du-fig {
  margin: 38px 0;
  padding: 30px 32px 28px;
  border: 1px solid #cfdcf0;
  border-radius: 20px;
  background: #f4f7fb;
  color: #071b3a;
}

h3.du-h {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #071b3a;
}

p.du-sub {
  margin: 8px 0 26px;
  font-size: 16px;
  line-height: 1.45;
  color: #4b5b76;
  text-wrap: pretty;
}

p.du-foot {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5a6a80;
  text-wrap: pretty;
}

/* ---------- figure 1: segment morph ---------- */

.du-morph {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 10px 20px;
}

p.du-morph__k {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #5a6a80;
  text-align: right;
}

p.du-morph__k--alert { color: #9c3d18; }

.du-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.du-t {
  padding: 11px 14px;
  border-radius: 10px;
  background: #e4eaf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #33415c;
}

.du-t--id {
  background: #cfe0fb;
  color: #123974;
}

.du-t--var {
  background: #2f6df6;
  color: #fff;
}

.du-t--kill {
  background: #f6d9cd;
  color: #8c3328;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.du-t--gone {
  background: transparent;
  border: 1px dashed #d0a08b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9c3d18;
}

.du-t--page {
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  background: #e8f0ff;
  color: #123974;
  padding: 13px 22px;
}

.du-t--area {
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  background: #071b3a;
  color: #fff;
  padding: 13px 22px;
}

/* ---------- figure 2: collapse ---------- */

.du-tiers {
  display: grid;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--color-accent-blue) #e9eef7;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.du-tiers:focus-visible {
  outline: 3px solid var(--color-accent-blue);
  outline-offset: 3px;
}

p.du-tier__k {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5a6a80;
}

.du-tier__k + .du-row { margin-bottom: 18px; }
.du-tiers .du-row:last-child { margin-bottom: 0; }

.du-tier__k b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: #071b3a;
  font-variant-numeric: tabular-nums;
}

.du-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}

.du-c {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 14px 12px;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 4px 0 0 #2f6df6;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #22314c;
  overflow-wrap: anywhere;
}

.du-c i {
  font-style: normal;
  font-weight: 700;
  color: #2459b8;
  font-variant-numeric: tabular-nums;
}

.du-c--raw {
  justify-content: center;
  padding: 12px 4px;
  box-shadow: inset 0 4px 0 #2f6df6;
  font-size: 14px;
  color: #64748b;
}

.du-c--code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.du-c--purple { box-shadow: inset 4px 0 0 #6853c7; }
.du-c--amber { box-shadow: inset 4px 0 0 #b88116; }
.du-c--slate { box-shadow: inset 4px 0 0 #64748b; }

.du-c--raw.du-c--purple { box-shadow: inset 0 4px 0 #6853c7; }
.du-c--raw.du-c--amber { box-shadow: inset 0 4px 0 #b88116; }
.du-c--raw.du-c--slate { box-shadow: inset 0 4px 0 #64748b; }

.du-c--solid {
  padding: 18px 12px;
  box-shadow: none;
  background: #dfe9fc;
  font-size: 14.5px;
  font-weight: 700;
  color: #123974;
}

.du-c--purple.du-c--solid { background: #e7e1fa; color: #3d2f7d; }
.du-c--purple.du-c--solid i { color: #5340a8; }
.du-c--amber.du-c--solid { background: #fbeacb; color: #6b4e08; }
.du-c--amber.du-c--solid i { color: #8a620c; }
.du-c--slate.du-c--solid { background: #e2e7ee; color: #33415c; }
.du-c--slate.du-c--solid i { color: #52627a; }

/* ---------- figure 3: precedence drop ---------- */

p.du-drop__in {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #5a6a80;
}

.du-drop__in code {
  padding: 8px 14px;
  border-radius: 9px;
  background: #071b3a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

ol.du-steps {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.du-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-left: calc(var(--i) * 26px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe4ef;
}

.du-step__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9edf3;
  font-size: 13px;
  font-weight: 700;
  color: #52627a;
  font-variant-numeric: tabular-nums;
}

.du-step__t {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #33415c;
  text-wrap: pretty;
}

.du-step__s {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6a80;
  white-space: nowrap;
}

.du-step--hit {
  border-color: #071b3a;
  background: #071b3a;
}

.du-step--hit .du-step__n { background: #7fb0ff; color: #071b3a; }
.du-step--hit .du-step__t { font-weight: 700; color: #fff; }
.du-step--hit .du-step__s { color: #9cc0ff; }

.du-step--off {
  border-style: dashed;
  background: transparent;
}

.du-step--off .du-step__t { color: #5a6a80; }

.du-duel {
  margin-left: calc(3 * 26px);
  margin-top: 8px;
  padding: 16px 18px 18px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fff;
}

p.du-duel__k {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #5a6a80;
}

p.du-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 0 0 8px;
  padding: 11px 14px;
  border-radius: 11px;
  background: #eef8f2;
}

.du-rule code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #12492c;
}

.du-rule span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #17693f;
}

p.du-rule--lose {
  background: #f7eae4;
}

.du-rule--lose code {
  color: #7a5f55;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.du-rule--lose span { color: #9c3d18; }

p.du-out {
  display: inline-block;
  margin: 6px 0 0;
  padding: 12px 20px;
  border-radius: 11px;
  background: #071b3a;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .du-fig { padding: 26px 24px 24px; }
  h3.du-h { font-size: 23px; }

  .du-morph {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  p.du-morph__k { text-align: left; }
  .du-morph__k:not(:first-child) { margin-top: 10px; }

  .du-step { margin-left: calc(var(--i) * 18px); }
  .du-duel { margin-left: calc(3 * 18px); }
}

@media (max-width: 860px) {
  .du-tiers > * { min-width: 860px; }

  .du-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 12px;
    margin-left: calc(var(--i) * 10px);
  }

  .du-step__n { grid-column: 1; grid-row: 1; }
  .du-step__t { grid-column: 2; grid-row: 1; }
  .du-step__s { grid-column: 2; grid-row: 2; justify-self: start; }

  .du-duel { margin-left: 30px; }
}

@media (max-width: 720px) {
  .du-fig { padding: 22px 18px 20px; border-radius: 16px; }
  h3.du-h { font-size: 20px; }
  p.du-sub { font-size: 15px; margin-bottom: 20px; }

  .du-t { padding: 9px 11px; font-size: 13px; }
  .du-t--page, .du-t--area { font-size: 16px; padding: 11px 16px; }

  .du-row { gap: 4px; }
}
