/* NOR-126 article-only system: ivory, ink and sand. */
.permit-finding {
  border-left-color: #5e646e;
}

.permit-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  border-block: 1px solid #e2e5ea;
}

.permit-numbers > div {
  padding: 24px 20px;
}

.permit-numbers > div + div {
  border-left: 1px solid #e2e5ea;
}

.permit-numbers strong,
.permit-numbers span {
  display: block;
}

.permit-numbers strong {
  color: #0d0f12;
  font-size: clamp(34px, 7vw, 52px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
  line-height: 1;
}

.permit-numbers span {
  margin-top: 10px;
  color: #16191d;
  font-size: 13px;
  line-height: 1.5;
}

.blog-article .permit-number-note {
  margin: 10px 0 38px;
  color: #5e646e;
  font-size: 13px;
}

.queue-explainer {
  margin: 36px 0 46px;
  padding: 30px 0 14px;
  border-block: 1px solid #e2e5ea;
}

.queue-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr);
  gap: 28px;
  align-items: end;
}

.queue-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #5e646e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .11em;
}

.blog-article .queue-head h2 {
  margin: 0;
  color: #0d0f12;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.blog-article .queue-head p {
  margin: 0;
  color: #5e646e;
  font-size: 14px;
  line-height: 1.6;
}

.queue-figure {
  margin: 24px 0 0;
}

.queue-system {
  overflow: hidden;
  padding: 28px;
  background: #f7f8fa;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
}

.queue-actors {
  display: grid;
  grid-template-columns: repeat(4, minmax(14px, .18fr) minmax(70px, 1fr)) minmax(70px, 1fr);
  align-items: center;
}

.queue-actors > div {
  min-width: 0;
  text-align: center;
}

.queue-actors span {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  place-items: center;
  color: #0d0f12;
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #9ea4b0;
  border-radius: 50%;
}

.queue-actors b {
  display: block;
  overflow: hidden;
  color: #5e646e;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.queue-actors > i {
  position: relative;
  height: 1px;
  background: #9ea4b0;
  transition: background 450ms ease;
}

.queue-actors > i::after {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid #6e747e;
  border-right: 1px solid #6e747e;
  transform: rotate(45deg);
}

.queue-road {
  position: relative;
  height: 94px;
  margin: 30px 0 24px;
  overflow: hidden;
  background: linear-gradient(#5e646e 0 0) center/100% 52px no-repeat;
  border-radius: 7px;
}

.queue-road::before {
  position: absolute;
  top: 46px;
  left: 0;
  width: 100%;
  content: "";
  border-top: 2px dashed #e2e5ea;
}

.queue-road > b,
.queue-road > em {
  position: absolute;
  z-index: 3;
  color: #ffffff;
  font-style: normal;
}

.queue-road > b {
  top: 14px;
  left: 16px;
  font-size: 9px;
  letter-spacing: .08em;
}

.queue-road > em {
  right: 14px;
  bottom: 8px;
  padding: 6px 9px;
  color: #0d0f12;
  font-size: 11px;
  font-weight: 600;
  background: #eaecef;
  border: 1px solid #9ea4b0;
  border-radius: 4px;
}

.queue-pipe {
  position: absolute;
  z-index: 2;
  top: -8px;
  left: 16%;
  width: 18px;
  height: 110px;
  background: repeating-linear-gradient(0deg, #5e646e 0 9px, #9ea4b0 9px 14px);
  border: 2px solid #16191d;
  border-radius: 9px;
  opacity: .35;
  transform: translateX(-50%);
  transition: left 700ms cubic-bezier(.22, 1, .36, 1), opacity 450ms ease, filter 450ms ease;
}

.queue-documents {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.queue-documents > div {
  min-height: 76px;
  padding: 12px 9px;
  background: #ffffff;
  border: 1px dashed #9ea4b0;
  border-radius: 5px;
  transition: background 450ms ease, border 450ms ease, transform 450ms ease;
}

.queue-documents span,
.queue-documents b {
  display: block;
}

.queue-documents span {
  color: #6e747e;
  font-size: 10px;
}

.queue-documents b {
  margin-top: 14px;
  color: #5e646e;
  font-size: 11px;
  line-height: 1.3;
}

.queue-explainer[data-stage="0"] [data-doc="0"],
.queue-explainer[data-stage="1"] [data-doc="1"],
.queue-explainer[data-stage="2"] [data-doc="2"],
.queue-explainer[data-stage="3"] [data-doc="3"],
.queue-explainer[data-stage="4"] [data-doc="4"] {
  background: #e2e5ea;
  border-color: #5e646e;
  border-style: solid;
  transform: translateY(-4px);
}

.queue-explainer[data-stage="1"] [data-doc="0"],
.queue-explainer[data-stage="2"] [data-doc="0"],
.queue-explainer[data-stage="2"] [data-doc="1"],
.queue-explainer[data-stage="3"] [data-doc="0"],
.queue-explainer[data-stage="3"] [data-doc="1"],
.queue-explainer[data-stage="3"] [data-doc="2"],
.queue-explainer[data-stage="4"] [data-doc="0"],
.queue-explainer[data-stage="4"] [data-doc="1"],
.queue-explainer[data-stage="4"] [data-doc="2"],
.queue-explainer[data-stage="4"] [data-doc="3"] {
  background: #eaecef;
  border-color: #107c55;
  border-style: solid;
}

.queue-explainer[data-stage="1"] .queue-pipe { left: 31%; }
.queue-explainer[data-stage="2"] .queue-pipe { left: 50%; }
.queue-explainer[data-stage="3"] .queue-pipe { left: 70%; opacity: .62; }
.queue-explainer[data-stage="4"] .queue-pipe { left: 87%; opacity: 1; filter: saturate(1.2); }

.queue-effects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.queue-effects > div {
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 5px;
}

.queue-effects small,
.queue-effects strong {
  display: block;
}

.queue-effects small {
  color: #5e646e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.queue-effects strong {
  min-height: 34px;
  margin: 6px 0 8px;
  color: #0d0f12;
  font-size: 12px;
  line-height: 1.35;
}

.queue-timeline,
.queue-cashline {
  position: relative;
  display: block;
  height: 4px;
  background: #e2e5ea;
}

.queue-timeline i,
.queue-cashline i {
  position: absolute;
  top: -3px;
  left: 10%;
  width: 10px;
  height: 10px;
  background: #5e646e;
  border-radius: 50%;
  transition: left 700ms cubic-bezier(.22, 1, .36, 1), width 700ms ease, border-radius 450ms ease;
}

.queue-explainer[data-stage="1"] .queue-timeline i { left: 30%; }
.queue-explainer[data-stage="2"] .queue-timeline i { left: 46%; }
.queue-explainer[data-stage="3"] .queue-timeline i { left: 62%; }
.queue-explainer[data-stage="4"] .queue-timeline i { left: 86%; }
.queue-explainer[data-stage="1"] .queue-cashline i { left: 18%; }
.queue-explainer[data-stage="2"] .queue-cashline i { left: 28%; }
.queue-explainer[data-stage="3"] .queue-cashline i { left: 42%; }
.queue-explainer[data-stage="4"] .queue-cashline i { left: 62%; width: 32%; border-radius: 3px; }

.queue-progress {
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  background: #e2e5ea;
}

.queue-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: #5e646e;
  transition: width 420ms ease;
}

.queue-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.queue-controls button {
  min-height: 40px;
  padding: 8px 12px;
  color: #0d0f12;
  font: inherit;
  font-size: 13px;
  background: transparent;
  border: 1px solid #9ea4b0;
  border-radius: 5px;
}

.queue-controls button:hover { background: #eaecef; }
.queue-controls button:focus-visible { outline: 3px solid #5e646e; outline-offset: 3px; }
.queue-controls button:disabled { color: #6e747e; background: #eaecef; }

.queue-counter {
  margin-left: auto;
  color: #5e646e;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.queue-figure figcaption {
  margin-top: 14px;
  color: #5e646e;
  font-size: 13px;
  line-height: 1.6;
}

.queue-state-copy {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e2e5ea;
}

.queue-state-copy li {
  padding: 16px 11px 4px;
  color: #5e646e;
  border-top: 3px solid transparent;
}

.queue-state-copy li.is-current {
  color: #0d0f12;
  border-top-color: #5e646e;
}

.queue-state-copy strong,
.queue-state-copy span { display: block; }
.queue-state-copy strong { margin-bottom: 7px; font-size: 13px; line-height: 1.4; }
.queue-state-copy span { font-size: 12px; line-height: 1.55; }

[id^="source-"] { scroll-margin-top: 100px; }

@media (max-width: 760px) {
  .queue-head { grid-template-columns: 1fr; gap: 12px; }
  .queue-system { padding: 20px 14px; }
  .queue-actors { grid-template-columns: repeat(5, minmax(48px, 1fr)); gap: 7px; }
  .queue-actors > i { display: none; }
  .queue-actors span { width: 36px; height: 36px; }
  .queue-documents { overflow-x: auto; grid-template-columns: repeat(5, minmax(104px, 1fr)); padding-bottom: 4px; }
  .queue-state-copy { grid-template-columns: 1fr; }
  .queue-state-copy li { padding: 14px 4px 14px 16px; border-top: 0; border-bottom: 1px solid #e2e5ea; border-left: 3px solid transparent; }
  .queue-state-copy li.is-current { border-top-color: transparent; border-left-color: #5e646e; }
}

@media (max-width: 560px) {
  .permit-numbers { grid-template-columns: 1fr; }
  .permit-numbers > div { padding: 20px 4px; }
  .permit-numbers > div + div { border-top: 1px solid #e2e5ea; border-left: 0; }
  .queue-effects { grid-template-columns: 1fr; }
  .queue-road > b { max-width: 50%; line-height: 1.3; }
  .queue-controls button { min-height: 44px; }
  .queue-counter { width: 100%; margin: 2px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .queue-pipe,
  .queue-documents > div,
  .queue-progress span,
  .queue-timeline i,
  .queue-cashline i { transition: none; }
}

@media print {
  .queue-controls,
  .queue-progress { display: none; }
  .queue-state-copy li { color: #0d0f12; }
}
