/* ALPHA SHRED PARTNERS — partner surface.
   Reuses the shell tokens (--paper, --ink, --red, --display, --sans, --mono,
   --pad) so this screen inherits whatever the hub is currently set to and does
   not fight the monochrome entry surfaces. Mobile first throughout: this gets
   read on a phone far more than on a desktop. */

.pt-wrap { padding: 0 0 48px; display: grid; gap: 22px; }
/* Grid and flex children default to min-width:auto, so one wide child (the
   history table) drags the whole page sideways. This is what keeps the phone
   layout honest. */
.pt-wrap, .pt-wrap > *, .pt-block, .pt-top, .pt-links, .pt-toolkit { min-width: 0; }
.pt-wrap * { max-width: 100%; }

.pt-h1 {
  font-family: var(--display);
  font-size: clamp(32px, 9vw, 58px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 6px 0 10px;
}
.pt-lede { font-size: 16px; line-height: 1.6; max-width: 62ch; margin: 0 0 4px; }
.pt-fine {
  font-size: 12px; line-height: 1.6; color: var(--hub-muted, #525252);
  max-width: 70ch; margin: 2px 0 0;
}
.pt-fine a { color: inherit; text-decoration: underline; }

.pt-skeleton, .pt-note {
  border: 1px solid var(--hub-line, #d9d9d9);
  padding: 28px var(--pad);
  display: grid; gap: 12px; justify-items: start;
}

/* ---------- the headline number ---------- */
.pt-top { border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.pt-big { margin: 10px 0 6px; }
.pt-big__v {
  display: block;
  font-family: var(--display);
  font-size: clamp(46px, 16vw, 104px);
  line-height: .9;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pt-big__l {
  display: block;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hub-muted, #525252);
  margin-top: 6px;
}
.pt-big__note {
  font-size: 12px; line-height: 1.55; color: var(--hub-muted, #525252);
  max-width: 56ch; margin: 10px 0 18px;
}

.pt-quad {
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--hub-line, #d9d9d9);
  border: 1px solid var(--hub-line, #d9d9d9);
}
.pt-q { background: var(--paper); padding: 14px 12px; min-width: 0; }
.pt-q b {
  display: block;
  font-family: var(--display);
  font-size: clamp(20px, 6vw, 30px);
  line-height: 1.05; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.pt-q span {
  display: block; margin-top: 5px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--hub-muted, #525252);
}
.pt-rank {
  margin: 14px 0 0; font-family: var(--mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.pt-rank b { font-family: var(--display); font-size: 18px; }

/* ---------- blocks ---------- */
.pt-block { border-top: 1px solid var(--hub-line, #d9d9d9); padding-top: 18px; }
.pt-block > .eyebrow { margin-bottom: 12px; }

/* ---------- founding 50 ---------- */
.pt-founding {
  border: 2px solid var(--ink); padding: 18px var(--pad);
  display: grid; gap: 10px;
}
.pt-founding--won { border-color: var(--red); }
.pt-founding--done { border-width: 1px; border-color: var(--hub-line, #d9d9d9); }
.pt-founding__h {
  font-family: var(--display);
  font-size: clamp(22px, 6.5vw, 36px);
  line-height: 1; text-transform: uppercase; margin: 2px 0;
}
.pt-founding p { margin: 0; font-size: 14px; line-height: 1.55; max-width: 60ch; }

/* ---------- progress bars ---------- */
.pt-bar {
  height: 10px; background: var(--hub-line, #d9d9d9);
  overflow: hidden; margin: 4px 0 0;
}
.pt-bar > span { display: block; height: 100%; background: var(--red); }
.pt-bar__legend {
  margin: 8px 0 0; font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.pt-bar__legend b { font-family: var(--display); font-size: 17px; }
.pt-togo { color: var(--red); margin-left: 8px; }

.pt-next__h {
  font-family: var(--display);
  font-size: clamp(20px, 6vw, 30px);
  text-transform: uppercase; line-height: 1; margin: 2px 0 10px;
}
.pt-next__r { margin: 10px 0 0; font-size: 14px; }

/* ---------- milestone ladder ---------- */
.pt-mslist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 1px;
  background: var(--hub-line, #d9d9d9); border: 1px solid var(--hub-line, #d9d9d9); }
.pt-ms {
  background: var(--paper); padding: 12px;
  display: grid; gap: 2px 10px; align-items: baseline;
  grid-template-columns: auto auto 1fr;
}
.pt-ms__n { font-family: var(--display); font-size: 22px; line-height: 1; }
.pt-ms__b { font-family: var(--mono); font-size: 13px; }
.pt-ms__s {
  justify-self: end; font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 2px 7px;
}
.pt-ms__w {
  grid-column: 1 / -1; font-family: var(--mono); font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--hub-muted, #525252);
}
.pt-ms--approved .pt-ms__s, .pt-ms--paid .pt-ms__s { color: var(--red); }
.pt-ms--reversed { opacity: .55; }

/* ---------- links ---------- */
.pt-code {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  border: 2px solid var(--ink); padding: 12px; margin-bottom: 12px;
}
.pt-code__label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--hub-muted, #525252); flex: 1 1 100%;
}
.pt-code__v {
  font-family: var(--display); font-size: clamp(24px, 8vw, 38px);
  line-height: 1; letter-spacing: .02em; overflow-wrap: anywhere;
}
.pt-link {
  border-top: 1px solid var(--hub-line, #d9d9d9);
  padding: 11px 0; display: grid; gap: 6px;
  grid-template-columns: 1fr auto; align-items: center;
}
.pt-link__label {
  grid-column: 1 / -1; font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--hub-muted, #525252);
}
.pt-link__url {
  font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere;
  min-width: 0;
}
.pt-copy {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; background: none; color: inherit;
  border: 1px solid currentColor; padding: 7px 11px; cursor: pointer;
  white-space: nowrap; min-height: 34px;
}
.pt-copy:hover, .pt-copy:focus-visible { background: var(--ink); color: var(--paper); }
.pt-copy.is-copied { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- kpi grid ---------- */
.pt-kpis {
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--hub-line, #d9d9d9); border: 1px solid var(--hub-line, #d9d9d9);
}
.pt-kpi { background: var(--paper); padding: 13px 12px; min-width: 0; }
.pt-kpi b {
  display: block; font-family: var(--display); font-size: clamp(18px, 5.5vw, 26px);
  line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.pt-kpi span {
  display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--hub-muted, #525252);
}

/* ---------- history table ---------- */
.pt-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; max-width: none; }
.pt-table th {
  text-align: left; font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 400;
  border-bottom: 2px solid var(--ink); padding: 8px 10px 8px 0; white-space: nowrap;
}
.pt-table td {
  border-bottom: 1px solid var(--hub-line, #d9d9d9);
  padding: 10px 10px 10px 0; vertical-align: top;
}
.pt-num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.pt-neg { color: var(--red); }
.pt-pill {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; border: 1px solid currentColor; padding: 2px 6px;
  white-space: nowrap;
}
.pt-pill--paid, .pt-pill--approved { color: var(--red); }
.pt-pill--reversed { opacity: .6; }

/* ---------- empty state ---------- */
.pt-empty { border: 2px solid var(--ink); padding: 20px var(--pad); display: grid; gap: 12px; justify-items: start; }
.pt-empty__h {
  font-family: var(--display); font-size: clamp(26px, 7.5vw, 40px);
  line-height: 1; text-transform: uppercase; margin: 0;
}
.pt-empty p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 56ch; }
.pt-ladder { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.pt-ladder li {
  font-size: 13px; padding-left: 14px; position: relative;
  border-top: 1px solid var(--hub-line, #d9d9d9); padding-top: 8px;
}
.pt-ladder b { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.pt-empty-line { font-size: 14px; color: var(--hub-muted, #525252); margin: 0; max-width: 60ch; }

/* ---------- the pitch and how it works ---------- */
.pt-hero { border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
.pt-how {
  display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--hub-line, #d9d9d9); border: 1px solid var(--hub-line, #d9d9d9);
}
.pt-step { background: var(--paper); padding: 15px 13px; }
.pt-step__n {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--red); display: block;
}
.pt-step h3 {
  font-family: var(--display); font-size: clamp(17px, 5vw, 23px);
  text-transform: uppercase; margin: 6px 0 5px; line-height: 1;
}
.pt-step p { margin: 0; font-size: 13px; line-height: 1.5; }

.pt-state { border: 2px solid var(--ink); padding: 22px var(--pad); display: grid; gap: 8px; justify-items: start; }
.pt-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 0; width: 100%; }
.pt-meta dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--hub-muted, #525252);
}
.pt-meta dd { margin: 0; font-size: 14px; }

/* ---------- the application form ---------- */
.pt-form { display: grid; gap: 14px; border-top: 1px solid var(--hub-line, #d9d9d9); padding-top: 18px; }
.pt-form label {
  display: grid; gap: 6px; font-family: var(--mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.pt-form input, .pt-form select, .pt-form textarea {
  font-family: var(--sans); font-size: 16px; /* 16px keeps iOS from zooming */
  padding: 11px 12px; border: 1px solid var(--ink); background: var(--white, #fff);
  color: var(--ink); width: 100%; border-radius: 0; min-height: 44px;
  text-transform: none; letter-spacing: normal;
}
.pt-form textarea { min-height: 84px; resize: vertical; }
.pt-form input:focus-visible, .pt-form select:focus-visible, .pt-form textarea:focus-visible {
  outline: 2px solid var(--red); outline-offset: 1px;
}
.pt-opt { color: var(--hub-muted, #525252); letter-spacing: .06em; }
.pt-check {
  grid-template-columns: auto 1fr; align-items: start; gap: 10px;
  text-transform: none; letter-spacing: normal; font-family: var(--sans); font-size: 14px;
}
.pt-check input { width: 20px; height: 20px; min-height: 20px; margin-top: 1px; }
.pt-check a { color: inherit; text-decoration: underline; }
.pt-err {
  margin: 0; font-size: 13px; color: var(--red);
  border-left: 3px solid var(--red); padding-left: 10px;
}

/* ---------- toolkit ---------- */
.pt-tk { border-top: 1px solid var(--hub-line, #d9d9d9); padding-top: 14px; margin-top: 14px; }
.pt-tk:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.pt-tk h3 {
  font-family: var(--display); font-size: clamp(16px, 4.6vw, 21px);
  text-transform: uppercase; margin: 0 0 10px; line-height: 1;
}
.pt-tk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pt-tk li { display: grid; gap: 6px; justify-items: start; }
.pt-tk li b { font-size: 14px; }
.pt-tk li p { margin: 0; font-size: 13px; line-height: 1.55; max-width: 64ch; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .pt-quad, .pt-how { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-link { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .pt-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-form label:nth-last-child(-n+5) { grid-column: 1 / -1; }
}

/* ==========================================================================
   PARTNERS, STAFF SIDE
   Lives inside The House, so it borrows the admin chrome (admbox, admrow,
   qin, qghost, empty, mono, muted, red) and only adds what it needs.
   ========================================================================== */
.pa { display: grid; gap: 16px; min-width: 0; }
.pa * { max-width: 100%; }

.pa-stats {
  display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--hub-line, #d9d9d9); border: 1px solid var(--hub-line, #d9d9d9);
}
.pa-stat { background: var(--paper); padding: 11px 10px; min-width: 0; }
.pa-stat b {
  display: block; font-family: var(--display); font-size: clamp(16px, 5vw, 23px);
  line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.pa-stat span {
  display: block; margin-top: 3px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--hub-muted, #525252);
}

.pa-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.pa-tab {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; background: none; border: 0; color: inherit;
  padding: 11px 13px; cursor: pointer; min-height: 42px; opacity: .55;
}
.pa-tab.is-on { opacity: 1; box-shadow: inset 0 -3px 0 var(--red); }

.pa-warn {
  border-left: 3px solid var(--red); padding: 8px 0 8px 10px; margin: 0;
  font-size: 13px; line-height: 1.5;
}
.pa-note { font-size: 12px; color: var(--hub-muted, #525252); margin: 8px 0 0; line-height: 1.55; }
.pa-sec {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 18px;
}

.pa-search { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-search .qin { flex: 1 1 180px; min-width: 0; }

.pa-row {
  display: grid; gap: 3px; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--hub-line, #d9d9d9);
  padding: 12px 0; cursor: pointer; color: inherit; min-width: 0;
}
.pa-row:hover, .pa-row:focus-visible { background: rgba(0, 0, 0, .04); }
.pa-row__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pa-row__sub { font-size: 11px; overflow-wrap: anywhere; }

.pa-app {
  border: 1px solid var(--hub-line, #d9d9d9); padding: 14px; display: grid; gap: 8px; min-width: 0;
}
.pa-app__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pa-app__top b { font-family: var(--display); font-size: 19px; text-transform: uppercase; }
.pa-when { font-family: var(--mono); font-size: 10px; color: var(--hub-muted, #525252); white-space: nowrap; }
.pa-app__meta { font-size: 11px; overflow-wrap: anywhere; color: var(--hub-muted, #525252); }
.pa-app__q { margin: 0; font-size: 13px; line-height: 1.5; }
.pa-app__q span {
  display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--hub-muted, #525252); margin-bottom: 2px;
}
.pa-app__act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.pa-app__act .qin { flex: 1 1 150px; min-width: 0; }
.pa-err { margin: 0; font-size: 12px; color: var(--red); }

.pa-back { align-self: start; }
.pa-detail { display: grid; gap: 14px; min-width: 0; }
.pa-dhead { display: grid; gap: 2px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.pa-dhead b { font-family: var(--display); font-size: clamp(24px, 7vw, 34px); text-transform: uppercase; line-height: 1; }
.pa-dhead span { font-size: 11px; overflow-wrap: anywhere; }

.pa-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; }
.pa-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 520px; max-width: none; }
.pa-table th {
  text-align: left; font-family: var(--mono); font-size: 9px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid var(--ink); padding: 7px 8px 7px 0; white-space: nowrap;
}
.pa-table td { border-bottom: 1px solid var(--hub-line, #d9d9d9); padding: 8px 8px 8px 0; }
.pa-num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.pa-neg { color: var(--red); }
.pa-mini {
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  background: none; border: 1px solid currentColor; color: inherit;
  padding: 4px 7px; cursor: pointer; margin-right: 5px; white-space: nowrap;
}
.pa-mini:hover, .pa-mini:focus-visible { background: var(--ink); color: var(--paper); }

@media (min-width: 640px) {
  .pa-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
