/* Use-case landing pages (/use-cases and /use-cases/:slug) */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; font: 400 0.8rem/1.4 var(--font-mono); color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
/* 40px tap height on touch widths without shifting the line (negative margin cancels the padding) */
@media (max-width: 820px) { .crumbs a { display: inline-block; padding: 12px 6px; margin: -12px -6px; } }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.uc { --c: var(--signal); }
.uc--ai { --c: var(--ai); } .uc--crawler { --c: var(--crawler); } .uc--scanner { --c: var(--scanner); }
.uc-hero .h1 { max-width: 900px; }
.uc-hero .lede { max-width: 760px; }
.uc-hero__meta { margin-top: 26px; --gap: 14px; }
.uc-hero__ctas { margin-top: 28px; }
.uc-flag { font: 500 0.86rem/1 var(--font-mono); padding: 8px 11px; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.uc-hero__cov { font-size: 0.92rem; }

.uc-problems .card__title { margin: 10px 0 8px; }
.uc-no { font-size: 0.78rem; color: var(--c); }

.uc-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.uc-how .section__head { margin-bottom: 28px; }
.uc-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.uc-steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--muted); line-height: 1.6; }
.uc-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 500 0.78rem/1.6 var(--font-mono); color: var(--c); padding: 1px 7px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 6px; }

.uc-code { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; min-width: 0; }
.uc-code__bar { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 400 0.8rem/1.3 var(--font-mono); color: var(--muted); }
.uc-code__label { margin-left: auto; color: var(--faint); }
.uc-code .code { border: 0; border-radius: 0; background: transparent; }
.uc-code .copy-btn { top: 50%; right: 10px; transform: translateY(-50%); } /* centred in the bar at any button height */
.code .uc-hit { color: var(--c); font-weight: 500; text-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); }
.uc-recipe .code { max-height: 560px; }

.uc-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.uc-split .section__head { margin-bottom: 0; }
.uc-caveats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.uc-caveats li { position: relative; padding: 18px 0 18px 30px; border-bottom: 1px solid var(--line); color: var(--muted); }
.uc-caveats li:first-child { border-top: 1px solid var(--line); }
.uc-caveats li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 10px; height: 1.5px; background: var(--warn); }

.uc-related__title { margin: 0 0 20px; }
.uc-related__card, .uc-index__card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.3s var(--ease); }
.uc-related__card:hover, .uc-index__card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.uc-related__card .muted { font-size: 0.9rem; }

.uc-index__card { --c: var(--signal); padding: 30px; }
.uc-index__card--ai { --c: var(--ai); } .uc-index__card--crawler { --c: var(--crawler); } .uc-index__card--scanner { --c: var(--scanner); }
.uc-index__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.uc-index__card .h3 { margin: 0; }
.uc-index__foot { margin-top: auto; padding-top: 14px; font-size: 0.8rem; color: var(--c); }

.uc-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 36px; }
.uc-cta .h2 { margin: 0 0 8px; }
.uc-cta .muted { margin: 0; max-width: 560px; }

@media (max-width: 1020px) {
  .uc-how, .uc-split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .uc-index { grid-template-columns: 1fr; }
  .uc-cta { padding: 26px 22px; }
  .uc-code__label { display: none; }
  .uc-index__card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-related__card, .uc-index__card { transition: none; }
  .uc-related__card:hover, .uc-index__card:hover { transform: none; }
}
.uc-reading { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.uc-reading a { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 2px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.uc-reading a:hover { color: var(--c); }
.uc-reading__go { color: var(--c); flex: none; }

/* Polish: no orphaned last words in headings/body copy; flag-coloured kicker on related cards */
.uc .h3, .uc .h4, .uc .card__title, .uc-related__title { text-wrap: balance; }
.uc .lede, .uc .muted, .uc-steps li, .uc-caveats li, .uc .section__lede, .uc-reading a span:first-child { text-wrap: pretty; }
.uc-related__card--ai { --c: var(--ai); } .uc-related__card--crawler { --c: var(--crawler); } .uc-related__card--scanner { --c: var(--scanner); } .uc-related__card--signal { --c: var(--signal); }
.uc-related__card .kicker { color: var(--c); }
/* 3 cards in the 2-column tablet grid: let the odd last card span the row instead of leaving a hole */
@media (max-width: 1020px) and (min-width: 761px) {
  .uc-problems > :last-child:nth-child(odd), .uc-related > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.uc-nowrap { white-space: nowrap; }
/* Keep the trail on one line on phones (no dangling "/"); the current page label truncates instead */
@media (max-width: 560px) {
  .crumbs { flex-wrap: nowrap; gap: 6px; }
  .crumbs > * { flex: none; }
  .crumbs [aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
