@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

.abp-masthead,
.abp-index-rail,
.abp-page {
  --navy: #0b2545;
  --harbor: #134074;
  --steel: #c4d3e0;
  --steel-light: #eaf0f5;
  --canvas: #f7f5ef;
  --card: #ffffff;
  --ink: #14213d;
  --ink-muted: #5c6b82;
  --orange: #e85d2c;
  --orange-dark: #b8431a;
  --whatsapp: #25a35a;
  --teal-bg: #e1f5ee;
  --teal: #0f6e56;
  --red-bg: #fcebeb;
  --red: #a32d2d;
  --radius: 10px;
  --black: #000000;

  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.abp-masthead *,
.abp-index-rail *,
.abp-page * {
  box-sizing: border-box;
}

.abp-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ============ BRAND MASTHEAD ============ */
.abp-masthead {
  background: var(--navy);
  color: #fff;
  margin: 0;
  padding: 26px 16px 0;
  background-image: radial-gradient(
    circle at 92% 0%,
    rgba(232, 93, 44, 0.18),
    transparent 55%
  );
}

.abp-masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.abp-crumb {
  font-size: 12.5px;
  color: #fff;
  margin-bottom: 16px;
}

.abp-crumb a {
  color: #fff;
  text-decoration: none;
}

.abp-crumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.abp-crumb span {
  color: #fff;
}

.abp-brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
}

.abp-brand-id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.abp-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.abp-brand-id h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.abp-brand-id p {
  margin: 0;
  font-size: 13.5px;
  color: #b9c7da;
}

.abp-brand-id p .dot {
  margin: 0 8px;
  opacity: 0.5;
}

.abp-brand-id p .mono {
  font-family: "JetBrains Mono", monospace;
  color: #fff;
}

.abp-search {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.abp-search input {
  width: 100% !important;
  padding: 11px 14px 11px 38px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
}

.abp-search input::placeholder {
  color: #9fb3cc;
}

.abp-search input:focus {
  outline: 2px solid var(--black);
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.abp-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9fb3cc;
}

.abp-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0 20px;
}

.abp-stat {
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.abp-stat:first-child {
  padding-left: 0;
  border-left: none;
}

.abp-stat .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 19px;
  font-weight: 500;
  color: #fff;
}

.abp-stat .lbl {
  font-size: 11.5px;
  color: #9fb3cc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

/* ============ A–Z INDEX RAIL (sticky) ============ */
.abp-index-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--steel);
  margin: 0;
  padding: 0 16px;
}

.abp-index-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.abp-index-inner::-webkit-scrollbar {
  display: none;
}

.abp-index-tag {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--harbor);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.abp-index-tag:hover {
  background: var(--steel-light);
}

.abp-index-tag.active {
  background: var(--black);
  color: #fff;
}

.abp-index-tag.disabled {
  color: var(--steel);
  cursor: default;
  pointer-events: none;
}

/* ============ LETTER SECTIONS ============ */
.abp-letter-section {
  padding-top: 34px;
  scroll-margin-top: 56px;
}

.abp-letter-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.abp-letter-head .ltr {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
  width: 40px;
  height: 40px;
  border-left: 3px solid var(--black);
  padding-left: 12px;
  display: flex;
  align-items: center;
}

.abp-letter-head .rule {
  flex: 1;
  height: 1px;
  background: var(--steel);
}

.abp-letter-head .cnt {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-muted);
}

.abp-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.abp-model-card {
  background: var(--card);
  border: 1px solid var(--steel);
  border-radius: 9px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s,
    transform 0.15s;
  display: block;
}

.abp-model-card:hover {
  border-color: var(--harbor);
  transform: translateY(-2px);
  text-decoration: none;
}

.abp-model-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--steel-light);
  overflow: hidden;
}

.abp-model-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.abp-model-thumb.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--steel);
}

.abp-model-thumb.empty svg {
  opacity: 0.7;
}

.abp-model-thumb.empty .soon {
  font-size: 10px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.abp-model-count-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(11, 37, 69, 0.75);
  color: #fff;
  font-size: 10.5px;
  font-family: "JetBrains Mono", monospace;
  padding: 2px 7px;
  border-radius: 20px;
}

.abp-model-body {
  padding: 10px 11px 12px;
}

.abp-model-eyebrow {
  font-size: 9.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 2px;
}

.abp-model-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .abp-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }
  .abp-stat:nth-child(3) {
    border-left: none;
  }
  .abp-brand-row {
    align-items: stretch;
  }
  .abp-search {
    width: 100%;
  }
  .abp-model-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
