/* Use cases page. Loaded after styles.css and home.css. */

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
}

.uc-hero {
  padding-bottom: 40px;
}

.uc-title {
  font-size: clamp(34px, 5vw, 56px);
  max-width: 18ch;
}

.uc-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -16px auto 44px;
}

.uc-jump .chip {
  text-decoration: none;
}

/* ---------- At a glance ---------- */

.uc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.uc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.uc-table caption {
  text-align: left;
  padding: 16px 20px 4px;
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
}

.uc-table th,
.uc-table td {
  text-align: left;
  padding: 12px 20px;
  border-bottom: 1px solid #efece5;
  vertical-align: top;
  line-height: 1.45;
}

.uc-table thead th {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.uc-table tbody tr:last-child th,
.uc-table tbody tr:last-child td {
  border-bottom: 0;
}

.uc-table tbody th a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.uc-table td:nth-child(3) {
  color: var(--ink-2);
}

.uc-table td:nth-child(2),
.uc-table td:nth-child(4) {
  color: var(--muted);
}

/* ---------- Use case sections ---------- */

.uc-sec {
  padding: 72px 0;
  border-top: 1px solid #ece9e1;
  scroll-margin-top: 70px;
}

.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.uc-sec--flip .uc-side {
  order: -1;
}

.uc-copy .kicker {
  display: inline-block;
  margin-bottom: 12px;
}

.uc-copy .sec-title {
  margin-bottom: 12px;
}

.uc-block {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.uc-h {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.uc-asks {
  list-style: none;
  display: grid;
  gap: 6px;
}

.uc-asks li {
  width: fit-content;
  font-size: 14px;
  color: var(--ink-2);
  border: 1px dashed #cfd2d8;
  border-radius: 999px;
  padding: 6px 14px;
}

.uc-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.uc-signals span {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--marker);
}

.uc-flow {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 8px;
}

.uc-flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.uc-flow li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Example card ---------- */

.uc-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 84px;
}

.uc-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.uc-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.uc-q svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.uc-rows {
  display: grid;
}

.uc-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 6px;
}

.uc-row + .uc-row {
  border-top: 1px dashed #ece9e1;
}

.uc-row img,
.uc-person img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #ece7db;
}

.uc-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.uc-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.uc-row-top b {
  font-size: 14.5px;
}

.uc-deg {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1efe9;
  color: var(--muted);
}

.uc-role {
  font-size: 12.5px;
  color: var(--muted);
}

.uc-why {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.uc-why b {
  font-family: var(--hand);
  font-size: 16px;
}

.uc-row-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.uc-score {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.uc-btn {
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.uc-btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.uc-example {
  justify-self: end;
  font-family: var(--hand);
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
}

.uc-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uc-person b {
  display: block;
  font-size: 15px;
}

.uc-person span {
  font-size: 12.5px;
  color: var(--muted);
}

.uc-brief {
  display: grid;
  gap: 10px;
}

.uc-brief-part {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f5ef;
}

.uc-brief-part ul {
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Stats ---------- */

.uc-stats {
  display: grid;
  gap: 10px;
}

.uc-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: baseline;
  padding: 16px 18px;
  border: 1px dashed #e8d48a;
  border-radius: 16px;
  background: #fffbea;
}

.uc-stat strong {
  grid-row: span 2;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.uc-stat span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.uc-stat a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Sources ---------- */

.uc-sources {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  font-size: 13.5px;
  color: var(--muted);
}

.uc-sources ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.uc-sources a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .uc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .uc-sec--flip .uc-side {
    order: 0;
  }

  .uc-side {
    position: static;
  }

  .uc-row {
    grid-template-columns: 40px 1fr;
  }

  .uc-row-side {
    grid-column: 2;
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
  }

  .uc-stat {
    grid-template-columns: 1fr;
  }

  .uc-stat strong {
    grid-row: auto;
  }
}

/* ---------- Overview tiles ---------- */

.uc-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.uc-tile {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px 14px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.uc-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d6d3cb;
}

.uc-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-radius: 12px;
  margin-bottom: 4px;
}

.uc-tile-for {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--li-blue);
}

.uc-tile-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.uc-tile-q {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Detail page ---------- */

.uc-hero--detail {
  padding: 40px 0 24px;
}

.uc-hero--detail .breadcrumb {
  margin-bottom: 22px;
}

.uc-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.uc-hero-grid .kicker {
  display: inline-block;
  margin-bottom: 12px;
}

.uc-hero-grid .sec-sub {
  margin: 14px 0 24px;
}

.uc-hero--detail .uc-title {
  font-size: clamp(32px, 4.4vw, 50px);
}

.uc-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.uc-hero--detail + .uc-sec {
  border-top: 0;
  padding-top: 32px;
}

.uc-more {
  display: grid;
  gap: 32px;
}

.uc-jump--left {
  justify-content: flex-start;
  margin: 0;
}

@media (max-width: 900px) {
  .uc-tiles,
  .uc-hero-grid {
    grid-template-columns: 1fr;
  }

  .uc-hero-grid {
    gap: 28px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .uc-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Company page in an example result */
.uc-co {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ede4fb;
  color: #6d28d9;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- Worked example ---------- */

.uc-walk {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.uc-walk .sec-head {
  margin-bottom: 6px;
}

.uc-walk .sec-title {
  font-size: clamp(26px, 3vw, 34px);
}

.uc-walk-result {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.uc-walk-note {
  font-size: 12.5px;
  color: var(--muted);
}

.uc-walk-steps {
  gap: 12px;
}

.uc-walk-steps li {
  font-size: 15.5px;
}
