/* =====================================================================
   BRODLIN STEP BAR: ONE SOURCE FOR EVERY TOOL (Denis 11.11.2026)
   Change it here and it changes in Text Grabber, Converter, Merge PDF,
   Compress PDF and every future tool. Do not restyle steps in module CSS.

   Markup contract (native modules are adapted by
   /assets/js/components/brodlin-tool-steps-r9-20261103.js):
     <ol class="brodlin-tool-steps">
       <li data-tool-step-state="completed|active|inactive">
         <span class="brodlin-tool-step__indicator">1</span>
         <span class="brodlin-tool-step__copy">
           <span class="brodlin-tool-step__title">Upload</span>
           <span class="brodlin-tool-step__description">Add your files</span>
         </span>
       </li>
     </ol>
   States: upcoming grey, current slate, done green with a check.
   ":is(html, #brodlin-steps)" only raises specificity so this file wins
   over older module layers; it matches every page.
   ===================================================================== */
:root {
  --bs-ink: #34465b;
  --bs-muted: #8a929c;
  --bs-future: #eef0f3;
  --bs-line: #e5e7eb;
  --bs-done: #12b76a;
}

:is(html, #brodlin-steps) .brodlin-tool-steps {
  display: flex;
  align-items: center;
  gap: 0;
  inline-size: 100%;
  min-inline-size: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 10px clamp(12px, 2vw, 24px);
  border: 0;
  background: transparent;
  list-style: none;
  counter-reset: none;
  box-shadow: none;
}
:is(html, #brodlin-steps) .brodlin-tool-steps::before,
:is(html, #brodlin-steps) .brodlin-tool-steps::after { content: none; display: none; }

:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state] {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 12px;
  position: relative;
  min-inline-size: 0;
  min-block-size: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bs-ink);
  font: 500 14px/20px Inter, system-ui, sans-serif;
  text-align: start;
  box-shadow: none;
  opacity: 1;
  cursor: default;
}
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state]:last-child { flex: 0 1 auto; }
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state]::before { content: none; }
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state]::after {
  content: "";
  display: block;
  flex: 1 1 24px;
  min-inline-size: 16px;
  block-size: 2px;
  margin-inline: 4px 16px;
  border-radius: 2px;
  background: var(--bs-line);
  transition: background-color .2s ease;
}
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state]:last-child::after { display: none; }
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state="completed"]::after { background: var(--bs-done); }

/* circle */
:is(html, #brodlin-steps) .brodlin-tool-steps .brodlin-tool-step__indicator {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 26px;
  inline-size: 26px;
  block-size: 26px;
  min-inline-size: 26px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bs-future);
  color: var(--bs-muted);
  font: 600 12px/1 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: center;
  box-shadow: none;
  transform: none;
  transition: background-color .2s ease, color .2s ease;
}
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state="active"] > .brodlin-tool-step__indicator { background: var(--bs-ink); color: #fff; }
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state="completed"] > .brodlin-tool-step__indicator { background: var(--bs-done); color: #fff; font-size: 0; }
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state="completed"] > .brodlin-tool-step__indicator::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.2 2.8 2.8L12.5 4.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.2 2.8 2.8L12.5 4.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* text */
:is(html, #brodlin-steps) .brodlin-tool-steps .brodlin-tool-step__copy { display: grid; gap: 0; flex: 0 0 auto; min-inline-size: 0; }
:is(html, #brodlin-steps) .brodlin-tool-steps .brodlin-tool-step__title,
:is(html, #brodlin-steps) .brodlin-tool-steps .strip-step__label {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--bs-ink);
  font: 500 14px/20px Inter, system-ui, sans-serif;
  white-space: nowrap;
}
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state="inactive"] .brodlin-tool-step__title,
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state="inactive"] .strip-step__label { color: #647080; }
:is(html, #brodlin-steps) .brodlin-tool-steps .brodlin-tool-step__description {
  display: block;
  margin: 0;
  color: var(--bs-muted);
  font: 400 13px/18px Inter, system-ui, sans-serif;
  white-space: nowrap;
}

:is(html, #brodlin-steps) .brodlin-tool-steps[hidden],
:is(html, #brodlin-steps) .brodlin-tool-steps > [hidden] { display: none; }

@media (max-width: 900px) {
  :is(html, #brodlin-steps) .brodlin-tool-steps .brodlin-tool-step__description { display: none; }
}
@media (max-width: 768px) {
  :is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state] { gap: 0; }
  :is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state]:last-child { flex: 0 0 26px; }
  :is(html, #brodlin-steps) .brodlin-tool-steps .brodlin-tool-step__copy { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state]::after { margin-inline: 10px; }
}

/* 2026-11-12: finished last step shows the check, like other done steps */
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state="active"]:last-child > .brodlin-tool-step__indicator { background: var(--bs-done); color: #fff; font-size: 0; }
:is(html, #brodlin-steps) .brodlin-tool-steps > [data-tool-step-state="active"]:last-child > .brodlin-tool-step__indicator::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.2 2.8 2.8L12.5 4.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.2 2.8 2.8L12.5 4.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 2026-11-12: phones. Before the step script wraps the AI Text label into .brodlin-tool-step__copy, the bare label
   must follow the same mobile rule as the wrapped one, or it sticks out and makes a side scroll. */
@media (max-width: 768px) {
  :is(html, #brodlin-steps) .brodlin-tool-steps > .strip-step > .strip-step__label { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* 2026-11-12 connector row: AI Text steps are a column on desktop; on phones they become a row like other tools, so the connector is a line, not a grey block. */
@media (max-width: 768px) {
  :is(html, #brodlin-steps) .brodlin-tool-steps > .strip-step { flex-direction: row; align-items: center; }
}
