/* ============================================================
   Achievements
   ============================================================ */

/* — hero stat plates (four distinct grounds, contrast-checked) — */
.ac-stats {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ac-stats li {
  padding: 20px 14px 17px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid var(--hb-border);
  box-shadow:
    0 18px 36px -24px rgba(29, 22, 28, 0.32),
    inset 0 1px 0 #fff;
}
.ac-stats b {
  display: block;
  font: 800 clamp(26px, 3vw, 34px)/1 var(--hb-display);
  margin-bottom: 7px;
}
.ac-stats span {
  display: block;
  font: 600 11.5px/1.4 var(--hb-text);
  letter-spacing: 0.06em;
}
/* 1 · parchment + burgundy figure */
.ac-stats li:nth-child(1) {
  background: linear-gradient(180deg, #fffdf6, #f6eedb);
}
.ac-stats li:nth-child(1) b {
  color: var(--hb-burg);
}
.ac-stats li:nth-child(1) span {
  color: var(--hb-muted);
}
/* 2 · deep burgundy + gold figure */
.ac-stats li:nth-child(2) {
  background: linear-gradient(180deg, #8c3b32, #7b2d26 58%, #5a1f1a);
  border-color: rgba(226, 177, 93, 0.55);
}
.ac-stats li:nth-child(2) b {
  color: #f3d58c;
}
.ac-stats li:nth-child(2) span {
  color: rgba(252, 247, 234, 0.84);
}
/* 3 · gold tint + bronze figure */
.ac-stats li:nth-child(3) {
  background: linear-gradient(180deg, #fbf2da, #f1dfaf);
}
.ac-stats li:nth-child(3) b {
  color: #6e5327;
}
.ac-stats li:nth-child(3) span {
  color: #6e5327;
}
/* 4 · green + cream figure */
.ac-stats li:nth-child(4) {
  background: linear-gradient(180deg, #35815b, #2c6a47 58%, #224f38);
  border-color: rgba(226, 177, 93, 0.45);
}
.ac-stats li:nth-child(4) b {
  color: #f3d58c;
}
.ac-stats li:nth-child(4) span {
  color: rgba(255, 255, 255, 0.86);
}

.ac-purpose {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 16px 22px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--hb-border);
  background: #fbf3e0;
  font: 600 13.5px/1.7 var(--hb-text);
  color: var(--hb-muted);
}

/* — snapshot strip — */
.ac-snap {
  list-style: none;
  margin: 0 auto 34px;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ac-snap li {
  padding: 22px 14px 18px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid var(--hb-border);
  background: linear-gradient(180deg, #fffdf6, #f7efdc);
  box-shadow:
    0 18px 36px -24px rgba(29, 22, 28, 0.3),
    inset 0 1px 0 #fff;
}
.ac-snap b {
  display: block;
  font: 800 clamp(24px, 2.8vw, 32px)/1 var(--hb-display);
  color: var(--hb-burg);
  margin-bottom: 7px;
}
.ac-snap span {
  display: block;
  font: 600 11.8px/1.45 var(--hb-text);
  color: var(--hb-muted);
}

/* — expanded blocks — */
.ac-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.ac-block {
  padding: 26px 26px 22px;
  border-radius: 20px;
  border: 1px solid var(--hb-border);
  background: linear-gradient(180deg, #fffdf6, #f6eedb);
  box-shadow:
    0 22px 44px -28px rgba(29, 22, 28, 0.32),
    inset 0 1px 0 #fff;
}
.ac-block h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  font: 700 18px/1.3 var(--hb-display);
  color: var(--hb-ink);
}
.ac-block h3 .n {
  font: 800 24px/1 var(--hb-display);
  color: var(--hb-burg);
  flex: none;
}
.ac-block p {
  margin: 0 0 11px;
  font: 500 14.3px/1.72 var(--hb-text);
  color: var(--hb-body);
}
.ac-block p:last-child {
  margin-bottom: 0;
}

/* — milestone rail (newest first, per source) — */
.ac-rail {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  position: relative;
}
.ac-rail::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    #2c6a47 0%,
    #7b2d26 26%,
    #6e5327 58%,
    #b08542 80%,
    #ecce77 100%
  );
}
.ac-rail > li {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  align-items: start;
  padding: 0 0 26px;
}
.ac-rail > li:last-child {
  padding-bottom: 0;
}
.ac-rail .y {
  position: relative;
  z-index: 1;
  width: 88px;
  text-align: center;
  padding: 10px 0;
  border-radius: 999px;
  font: 800 15px/1 var(--hb-display);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    0 9px 16px -8px rgba(29, 22, 28, 0.5);
}
.ac-rail > li:nth-child(odd) .y {
  color: #3f2f10;
  background: linear-gradient(180deg, #f0ce83, var(--hb-gold) 58%, #c89440);
}
.ac-rail > li:nth-child(even) .y {
  color: #fcf7ea;
  background: linear-gradient(180deg, #8c3b32, var(--hb-burg) 58%, #5a1f1a);
}
.ac-rail h3 {
  margin: 2px 0 8px;
  font: 700 17px/1.32 var(--hb-display);
  color: var(--hb-ink);
}
.ac-rail p {
  margin: 0;
  font: 500 14.2px/1.7 var(--hb-text);
  color: var(--hb-body);
  max-width: 64ch;
}

/* — link chip — */
.ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 17px;
  border-radius: 999px;
  text-decoration: none;
  font: 700 12.5px/1 var(--hb-text);
  color: #3f2f10;
  background: linear-gradient(180deg, #f0ce83, var(--hb-gold) 58%, #c89440);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 8px 14px -8px rgba(143, 106, 46, 0.6);
  transition: transform 0.15s ease;
}
.ac-chip:hover {
  transform: translateY(-1px);
}
.ac-chip::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2.2px solid #3f2f10;
  border-right: 2.2px solid #3f2f10;
  transform: rotate(45deg) scale(0.75);
}
.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.ac-chips .ac-chip {
  margin-top: 0;
}

/* — recognition medallions — */
.ac-recog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}
.ac-recog div {
  padding: 26px 20px 22px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid var(--hb-border);
  background: linear-gradient(180deg, #fffdf6, #f7efdc);
  box-shadow:
    0 18px 36px -24px rgba(29, 22, 28, 0.3),
    inset 0 1px 0 #fff;
}
.ac-recog .ic {
  display: block;
  width: 68px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 10px 16px rgba(74, 55, 20, 0.32));
}
.ac-recog .ic img {
  width: 100%;
}
.ac-recog h3 {
  margin: 0 0 10px;
  font: 700 15.5px/1.32 var(--hb-display);
  color: var(--hb-ink);
}
.ac-recog p {
  margin: 0;
  font: 500 13.5px/1.7 var(--hb-text);
  color: var(--hb-body);
}

/* — duo cards — */
.ac-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}
.ac-duo .ab-card {
  display: flex;
  flex-direction: column;
}
.ac-hi {
  width: 24px;
  height: 24px;
  flex: none;
}

/* — advisory plates — */
.ac-warn {
  list-style: none;
  margin: 18px auto 0;
  padding: 0;
  max-width: 840px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ac-warn li {
  position: relative;
  padding: 13px 16px 13px 44px;
  border-radius: 14px;
  border: 1px solid rgba(123, 45, 38, 0.28);
  background: #fbf1ec;
  font: 600 13.5px/1.5 var(--hb-text);
  color: #5a2620;
}
.ac-warn li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(
      45deg,
      transparent 42%,
      var(--hb-burg) 42%,
      var(--hb-burg) 58%,
      transparent 58%
    ),
    linear-gradient(
      -45deg,
      transparent 42%,
      var(--hb-burg) 42%,
      var(--hb-burg) 58%,
      transparent 58%
    );
}
.ac-warn li:nth-child(7),
.ac-warn li:nth-child(8) {
  border-color: rgba(44, 106, 71, 0.32);
  background: #f1f6ee;
  color: #254d38;
}
.ac-warn li:nth-child(7)::before,
.ac-warn li:nth-child(8)::before {
  width: 13px;
  height: 7px;
  top: 17px;
  background: none;
  border-left: 2.6px solid var(--hb-green);
  border-bottom: 2.6px solid var(--hb-green);
  transform: rotate(-45deg);
}

/* — impact table — */
.ac-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 1040px;
  margin: 0 auto;
}
.ac-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid #d9a64c;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 52px -30px rgba(29, 22, 28, 0.36);
}
.ac-table th[scope="col"] {
  padding: 15px 18px;
  text-align: left;
  font: 700 14px/1.2 var(--hb-display);
  color: #fcf7ea;
  background: linear-gradient(180deg, #7e5f31, var(--hb-bronze) 58%, #57411e);
}
.ac-table th[scope="col"] + th {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.ac-table th[scope="row"] {
  width: 220px;
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  font: 700 14px/1.4 var(--hb-display);
  color: var(--hb-ink);
  background: #fbf3e0;
  border-top: 1px solid var(--hb-border);
  border-right: 1px solid var(--hb-border);
}
.ac-table td {
  padding: 15px 18px;
  font: 500 13.8px/1.65 var(--hb-text);
  color: var(--hb-body);
  background: #fffdf6;
  border-top: 1px solid var(--hb-border);
  vertical-align: top;
}
.ac-table tbody tr:nth-child(even) th[scope="row"] {
  background: #f6ebd2;
}
.ac-table tbody tr:nth-child(even) td {
  background: #f8f1de;
}

/* — mission lines — */
.ac-mission {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 620px;
  display: grid;
  gap: 9px;
}
.ac-mission li {
  position: relative;
  padding: 13px 18px 13px 44px;
  border-radius: 14px;
  border: 1px solid rgba(226, 177, 93, 0.35);
  background: rgba(252, 247, 234, 0.06);
  font: 600 14.5px/1.5 var(--hb-display);
  color: #fcf7ea;
}
.ac-mission li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #f5da96,
    var(--hb-gold) 60%,
    #b08542
  );
}

.hb-btn.hbx-app {
  color: #fcf7ea;
  background: linear-gradient(180deg, #8a6a38, #6e5327 55%, #4a3714);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 10px 18px -9px rgba(74, 55, 20, 0.6);
}
.hb-btn.hbx-app:hover {
  color: #fcf7ea;
  transform: translateY(-1px);
}

@media (max-width: 1020px) {
  .ac-recog {
    grid-template-columns: repeat(2, 1fr);
  }
  .ac-blocks {
    grid-template-columns: 1fr;
  }
  .ac-duo {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .ac-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ac-snap {
    grid-template-columns: repeat(2, 1fr);
  }
  .ac-warn {
    grid-template-columns: 1fr;
  }
  .ac-recog {
    grid-template-columns: 1fr;
  }
  .ac-rail::before {
    left: 30px;
  }
  .ac-rail > li {
    grid-template-columns: 70px 1fr;
    gap: 16px;
  }
  .ac-rail .y {
    width: 70px;
    font-size: 13.5px;
  }
  .ac-table th[scope="row"] {
    width: auto;
  }
}
