/* ==========================================================================
   OwnThePie v3.0 — Public Brand Directory & 7-Matrix Profile Styles
   ========================================================================== */

.otp-brands-main {
  gap: clamp(24px, 3vw, 40px);
}

.otp-brands-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 400px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-block: 10px;
}

.otp-brands-masthead-copy {
  display: grid;
  gap: 10px;
}

.otp-brands-masthead-copy h1 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -.052em;
  line-height: 1.02;
}

.otp-brands-masthead-copy p {
  max-width: 43ch;
  color: var(--muted);
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  line-height: 1.5;
}

.otp-compass-unlock-card {
  display: grid;
  justify-items: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: var(--paper);
}

.otp-compass-unlock-card h2 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.otp-compass-unlock-card p {
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.5;
}

.otp-compass-unlock-card > .btn {
  min-height: 44px;
  margin-top: 3px;
}

.otp-compass-unlock-card.is-unlocked > .btn {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.otp-compass-unlock-card.is-unlocked > .btn:hover {
  border-color: var(--ink);
  background: var(--panel);
  color: var(--ink);
}

.otp-brands-directory-section {
  display: grid;
  gap: 14px;
}

.otp-brands-toolbar {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.otp-route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  border-bottom: 1px solid var(--line);
}

.otp-route-filter {
  min-height: 44px;
  padding: 4px 3px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
  text-align: left;
}

.otp-route-filter[aria-pressed="true"] {
  border-bottom-color: var(--orange-deep);
  color: var(--ink);
}

.otp-route-filter:hover {
  color: var(--ink);
}

.otp-brands-filters-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.otp-filter-select-wrap,
.otp-filter-search-wrap {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.otp-brands-filters-row label > span {
  color: var(--ink);
  font-size: .77rem;
  font-weight: 700;
}

.otp-brands-filters-row select,
.otp-brands-filters-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
}

.otp-brand-result-count {
  color: var(--muted);
  font-size: .83rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.otp-brand-sponsorships:not([hidden]) {
  display: grid;
  gap: 14px;
  padding: clamp(10px, 1.4vw, 18px);
  border: 1px solid #e2cdbf;
  border-radius: 20px;
  background: #fbf3ed;
}

.otp-brand-sponsorships > h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.022em;
}

.otp-brand-sponsorships .otp-brands-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

@media (max-width: 899px) {
  .otp-brand-sponsorships .otp-brands-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(89%, 21rem);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 5px 6px 16px;
    scroll-padding-inline: 6px;
    scroll-snap-type: x proximity;
  }

  .otp-brand-sponsorships .otp-brands-grid:has(> :only-child) {
    grid-auto-columns: min(100%, 21rem);
  }

  .otp-brand-sponsorships .otp-brand-card {
    scroll-snap-align: start;
  }

  .otp-brand-sponsorships .otp-card-profile-link {
    white-space: nowrap;
  }

  .otp-brand-sponsorships .otp-brand-card-actions .otp-brand-save {
    padding-inline: 8px;
  }
}

.otp-brands-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  text-align: center;
}

.otp-bottom-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.otp-bottom-copy h2 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.otp-bottom-copy p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .9rem;
}

/* Directory and homepage cards */
.otp-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.otp-brand-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: 0 2px 5px rgb(20 27 42 / 5%), var(--shadow-card);
}

.otp-brand-card:hover,
.otp-brand-card:focus-within {
  border-color: var(--line-strong);
}

.otp-brand-card-media {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: 13px;
  overflow: hidden;
  aspect-ratio: 1.98 / 1;
  min-height: 148px;
  isolation: isolate;
  background: var(--ink);
}

.otp-brand-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.otp-brand-media-top {
  position: absolute;
  inset: 10px 10px auto;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.otp-brand-card-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  padding-inline: 5px;
}

.otp-brand-card-title {
  color: var(--ink);
  font-size: clamp(1.12rem, 1.6vw, 1.43rem);
  font-weight: 800;
  letter-spacing: -.034em;
  line-height: 1.19;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.otp-brand-card-tagline {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.48;
}

/* Layer 1 Public Numbers Strip */
.otp-brand-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.otp-metric-cell {
  display: grid;
  gap: 2px;
}

.otp-metric-cell small {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.otp-metric-cell strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

/* Full Brand Detail View */
.otp-brand-detail-section {
  display: grid;
  gap: 24px;
}

.otp-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.otp-detail-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.otp-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 26px;
  align-items: center;
}

.otp-detail-hero-photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink);
}

.otp-detail-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.otp-detail-hero-copy {
  display: grid;
  gap: 14px;
}

.otp-detail-hero-copy h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

@media (max-width: 960px) {
  .otp-detail-hero,
  .otp-highlights-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .otp-brands-masthead {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 0;
  }

  .otp-brands-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .otp-brands-filters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .otp-filter-search-wrap {
    grid-column: 1 / -1;
  }

  .otp-brands-filters-row input,
  .otp-brands-filters-row select {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .otp-brands-filters-row label:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .otp-brand-detail-section .otp-brand-metrics-strip {
    grid-template-columns: 1fr;
  }
}

.otp-brand-card-media::after {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgb(4 12 19 / 22%));
  content: "";
}

.otp-brand-media-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.otp-brand-route-badge,
.otp-brand-sponsored-badge {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.4;
}

.otp-brand-sponsored-badge {
  background: #753618;
  color: #fff;
}

.otp-fit-compass {
  --fit-ink: var(--orange-deep);
  --fit-track: #eef0f2;
  --ring-width: clamp(4px, .5vw, 6px);
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(62px, 6.3vw, 79px);
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
  color: var(--fit-ink);
  line-height: 1;
}

.otp-fit-compass.is-locked:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.otp-fit-compass.is-locked:hover .otp-fit-compass-ring {
  border-color: #d9dde2;
}

.otp-fit-compass-ring {
  position: absolute;
  inset: 0;
  border: var(--ring-width) solid var(--fit-track);
  border-radius: inherit;
}

.otp-fit-compass.has-score .otp-fit-compass-ring {
  border: 0;
  background: conic-gradient(
    var(--fit-ink) 0deg calc(360deg + var(--needle-angle)),
    var(--fit-track) 0deg
  );
  mask-image: radial-gradient(
    farthest-side,
    transparent calc(100% - var(--ring-width) - .4px),
    #000 calc(100% - var(--ring-width) + .4px)
  );
}

.otp-fit-compass.has-score .otp-fit-compass-ring::before,
.otp-fit-compass.has-score .otp-fit-compass-ring::after {
  position: absolute;
  top: 0;
  left: calc(50% - var(--ring-width) / 2);
  width: var(--ring-width);
  height: 100%;
  background: radial-gradient(circle closest-side, var(--fit-ink) 96%, transparent) top / 100% var(--ring-width) no-repeat;
  content: "";
}

.otp-fit-compass.has-score .otp-fit-compass-ring::after {
  transform: rotate(var(--needle-angle));
}

.otp-fit-compass-needle {
  position: absolute;
  inset: 0;
  transform: rotate(var(--needle-angle));
}

.otp-fit-compass-needle::before {
  position: absolute;
  inset: 17% 31% 48%;
  background: var(--fit-ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
}

.otp-fit-compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--fit-ink);
  color: var(--paper);
  font-size: clamp(.7rem, 1.28vw, .98rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.otp-fit-compass.is-unavailable .otp-fit-compass-center {
  background: #6b7582;
}

.otp-fit-compass-label {
  position: absolute;
  inset: auto 0 10%;
  color: var(--fit-ink);
  text-align: center;
  font-size: clamp(.54rem, 1.1vw, .76rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.otp-card-lock-icon {
  display: block;
  position: relative;
  width: 40%;
  height: 31%;
  margin-top: 15%;
  background: var(--paper);
  border-radius: 1.5px;
}

.otp-card-lock-icon::before {
  position: absolute;
  inset: -80% 10% 54%;
  border: 1.4px solid var(--paper);
  border-radius: 8px 8px 0 0;
  content: "";
}

.otp-card-lock-icon::after {
  position: absolute;
  inset: 30% 42%;
  border-radius: 2px;
  background: var(--fit-ink);
  content: "";
}

.otp-brand-category {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
}

/* The Journal hero's connected cutout, scaled to a brand card. */
.otp-brand-wordmark {
  --gutter: clamp(5px, .6vw, 8px);
  --join-radius: clamp(11px, 1.1vw, 16px);
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 35%;
  height: 28%;
  min-height: 44px;
  padding: 1px 4px;
  border-top: var(--gutter) solid var(--paper);
  border-left: var(--gutter) solid var(--paper);
  border-radius: calc(var(--join-radius) + var(--gutter)) 0 0 0;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  font-size: clamp(.73rem, 1.35vw, 1.06rem);
  font-weight: 800;
  line-height: 1.13;
  overflow-wrap: anywhere;
}

.otp-brand-wordmark::before,
.otp-brand-wordmark::after {
  position: absolute;
  width: var(--join-radius);
  height: var(--join-radius);
  background: radial-gradient(
    circle at 0 0,
    transparent calc(var(--join-radius) - .4px),
    var(--paper) var(--join-radius)
  );
  pointer-events: none;
  content: "";
}

.otp-brand-wordmark::before {
  left: calc(-1 * (var(--join-radius) + var(--gutter)));
  bottom: 0;
}

.otp-brand-wordmark::after {
  right: 0;
  top: calc(-1 * (var(--join-radius) + var(--gutter)));
}

.otp-brand-card-media .otp-brand-wordmark img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.otp-brand-initials {
  font-size: clamp(1rem, 1.75vw, 1.48rem);
  font-weight: 700;
  letter-spacing: .04em;
}

.otp-brand-card-intro {
  display: grid;
  align-content: start;
  gap: 4px;
}

.otp-brand-card .otp-brand-metrics-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  margin: auto 0 0;
  padding: 10px 0;
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.otp-brand-card .otp-metric-cell {
  min-width: 0;
  padding-inline: clamp(5px, 1.1vw, 8px);
}

.otp-brand-card .otp-metric-cell:first-child {
  padding-left: 0;
}

.otp-brand-card .otp-metric-cell + .otp-metric-cell {
  border-left: 1px solid var(--line);
}

.otp-metric-cell dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
}

.otp-metric-cell dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(.77rem, 1.12vw, .96rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: wrap;
}

.otp-brand-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-inline: 5px;
}

.otp-card-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 800;
  line-height: 1.25;
}

.otp-card-profile-link::after {
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex: none;
  content: "";
}

.otp-card-profile-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.otp-brand-card-actions .otp-brand-save {
  min-height: 44px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
}

.otp-brand-save:disabled {
  opacity: 1;
}

@media (min-width: 1180px) {
  .otp-brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.otp-brand-card-illustration {
  background:
    radial-gradient(circle at 20% 110%, #dce5e9 0 34%, transparent 34.4%),
    radial-gradient(circle at 84% -16%, #e2e9ed 0 42%, transparent 42.4%),
    #eef2f4;
}

.otp-brand-card-illustration::after {
  display: none;
}

.otp-brand-card-illustration .otp-brand-route-badge {
  border: 1px solid #dce4e8;
}

.otp-brand-wordmark .otp-brand-initials {
  display: none;
}

.otp-brand-wordmark.is-monogram img {
  position: absolute;
  max-width: calc(100% - 12px);
  opacity: 0;
}

.otp-brand-wordmark.is-monogram .otp-brand-initials {
  display: block;
}

.otp-brands-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  color: var(--muted);
  font-size: .84rem;
}

.otp-brands-pagination > :first-child {
  justify-self: start;
}

.otp-brands-pagination > :last-child {
  justify-self: end;
}

.otp-brand-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.otp-brand-profile-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

/* Brand Matrix */
.otp-brand-matrix {
  display: grid;
  gap: 18px;
  scroll-margin-top: 24px;
}

.otp-matrix-heading {
  display: grid;
  gap: 6px;
}

.otp-matrix-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.047em;
  line-height: 1.1;
}

.otp-matrix-heading p,
.otp-matrix-note {
  color: var(--muted);
}

.otp-matrix-note {
  font-size: .8rem;
  line-height: 1.5;
}

.otp-matrix-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 16px;
}

.otp-matrix-panel {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 18px;
  padding: clamp(16px, 2.3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.otp-matrix-panel:only-child,
.otp-matrix-panel:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.otp-matrix-panel h3 {
  font-size: clamp(1.1rem, 1.65vw, 1.36rem);
  font-weight: 800;
  letter-spacing: -.027em;
}

.otp-matrix-fit {
  grid-template-rows: auto auto 1fr;
  border-color: #2c3440;
  background:
    radial-gradient(ellipse at 95% 0, rgb(84 111 130 / 29%), transparent 66%),
    #1a222b;
  color: #fff;
}

.otp-matrix-fit-summary {
  display: flex;
  align-items: center;
  gap: clamp(13px, 2vw, 20px);
}

.otp-matrix-fit-summary > div:last-child > strong {
  display: block;
  color: #fff;
  font-size: clamp(1.03rem, 1.8vw, 1.36rem);
  font-weight: 800;
  line-height: 1.24;
  text-wrap: balance;
}

.otp-matrix-fit-summary p {
  margin-top: 5px;
  color: #c3cdd9;
  font-size: .85rem;
}

.otp-matrix-fit-summary .otp-fit-compass,
.otp-matrix-coverage {
  width: clamp(82px, 9vw, 104px);
  flex: none;
}

.otp-matrix-coverage {
  display: grid;
  position: relative;
  isolation: isolate;
  place-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#ffc293 var(--coverage), #455362 0);
  color: #fff;
  text-align: center;
}

.otp-matrix-coverage::before {
  position: absolute;
  z-index: -1;
  inset: 6px;
  border-radius: inherit;
  background: #1c242f;
  content: "";
}

.otp-matrix-coverage > strong {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.otp-matrix-coverage > strong span {
  color: #c3cdd9;
  font-size: .65em;
}

.otp-matrix-coverage > small {
  color: #e5ebf2;
  font-size: .64rem;
  font-weight: 750;
}

.otp-matrix-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.otp-matrix-signal {
  --signal-color: #d6deeb;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgb(216 229 240 / 19%);
  border-radius: 12px;
  background: rgb(217 230 252 / 6%);
}

.otp-matrix-signal[data-status="pass"] { --signal-color: #bae4b5; }
.otp-matrix-signal[data-status="caution"] { --signal-color: #ffd391; }
.otp-matrix-signal[data-status="clash"] { --signal-color: #ffb7aa; }

.otp-matrix-signal > div {
  display: grid;
  gap: 3px;
}

.otp-matrix-signal strong {
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.35;
}

.otp-matrix-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--signal-color);
  font-size: .74rem;
  font-weight: 800;
}

.otp-matrix-status::before {
  flex: none;
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.otp-matrix-signal:not([data-status="unresolved"]) .otp-matrix-status::before {
  background: currentColor;
}

.otp-matrix-signal p {
  color: #cdd6e2;
  font-size: .77rem;
  line-height: 1.48;
}

.otp-capital-chart,
.otp-matrix-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.otp-capital-row {
  display: grid;
  gap: 4px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.otp-capital-row dd,
.otp-matrix-fact dd {
  margin: 0;
}

.otp-capital-row dt,
.otp-matrix-fact dt {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.otp-capital-row dd {
  display: grid;
  gap: 7px;
}

.otp-capital-row dd strong {
  font-size: clamp(1.07rem, 2vw, 1.36rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.otp-capital-track {
  --track-fill: #b74a30;
  position: relative;
  display: block;
  height: 12px;
  margin-inline: 7px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #c2cbd6 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    #e8edf2;
}

.otp-capital-track[data-kind="minimum"] { --track-fill: #3a5267; }
.otp-capital-track[data-kind="buyer"] { --track-fill: #417249; }

.otp-capital-range,
.otp-capital-dot {
  position: absolute;
  left: var(--range-start);
  background: var(--track-fill);
}

.otp-capital-dot.is-open {
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 27% 50%);
}

.otp-capital-range {
  inset-block: 1px;
  width: var(--range-size);
  border-radius: 6px;
}

.otp-capital-dot {
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--paper);
}

.otp-capital-axis {
  display: flex;
  justify-content: space-between;
  margin: -10px 7px 0;
  color: var(--muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.otp-matrix-fact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.otp-matrix-fact dd strong {
  font-size: .9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.otp-matrix-history {
  background: #f7f9fa;
}

.otp-matrix-milestones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.otp-matrix-milestones li {
  display: grid;
  position: relative;
  gap: 2px;
  padding: 16px 16px 0 0;
  border-top: 2px solid #cbd5df;
}

.otp-matrix-milestones li:last-child {
  border-image: linear-gradient(90deg, #cbd5df, transparent) 1;
}

.otp-matrix-milestones li::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #f7f9fa;
  border-radius: 50%;
  background: #a74630;
  box-shadow: 0 0 0 1px #a74630;
  content: "";
}

.otp-matrix-milestones li > strong,
.otp-matrix-footprint > strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.otp-matrix-footprint {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.otp-matrix-footprint > strong {
  overflow-wrap: anywhere;
}

.otp-matrix-footprint > div,
.otp-matrix-milestones li > span {
  font-size: .84rem;
  font-weight: 750;
}

.otp-matrix-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  flex-wrap: wrap;
  padding: clamp(16px, 2.3vw, 28px);
  border: 1px solid #e6cbbd;
  border-radius: 20px;
  background: #fbf3ed;
}

.otp-matrix-locked h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.otp-matrix-locked p {
  max-width: 560px;
  margin-top: 5px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .otp-matrix-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .otp-matrix-panel {
    gap: 13px;
  }

  .otp-matrix-signal {
    padding: 8px;
  }

  .otp-matrix-signal strong {
    font-size: .78rem;
  }
}
