/* Guardian page (/team), password page (/set-password) and team pages (/<team>). Builds on style.css and app.css. */
.tp-main .panel,.tp-public .panel{margin-bottom:22px}
.tp-main h2,.tp-public h2{margin:0 0 12px}
.tp-main h3{margin:26px 0 10px}
.tp-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.tp-head p{margin:8px 0 0}
.tp-badges{display:flex;gap:8px;flex-wrap:wrap}
.tp-badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700;background:#f1e7d8;color:#5c4532;border:1px solid #e1d2bd;white-space:nowrap;vertical-align:middle}
.tp-badge.good{background:#e9f5ed;color:#1f6b45;border-color:#98c3a9}
.tp-badge.warn{background:#fff5d8;color:#7a5600;border-color:#e0c26e}
.tp-badge.bad{background:#fae7e3;color:#9a2b20;border-color:#dfa59c}
.tp-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 18px;border-bottom:1px solid var(--line)}
.tp-tabs button{border:1px solid transparent;border-bottom:0;background:transparent;padding:11px 18px;font:inherit;font-weight:700;font-size:14px;color:var(--ink);cursor:pointer;border-radius:4px 4px 0 0}
.tp-tabs button[aria-selected="true"]{background:#fffaf1;border-color:var(--line);margin-bottom:-1px}
.tp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.tp-card{border:1px solid var(--line);background:#fffdfa;padding:16px;border-radius:4px;min-width:0}
.tp-card p{margin:6px 0}
.tp-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.tp-items{margin:8px 0;padding-left:18px}
.tp-actions,.tp-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.tp-buttons .button,.tp-actions .button{margin-top:0;width:auto}
.button.tp-small{padding:9px 14px;font-size:12px;gap:8px;margin-top:0;width:auto}
.tp-note{margin:0 0 14px}
.tp-table{overflow-x:auto}
.tp-table table{width:100%;border-collapse:collapse;min-width:620px}
.tp-table th,.tp-table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}
.tp-table th{font-size:11px;letter-spacing:.8px;text-transform:uppercase;color:#79644f}
.tp-count{display:flex;gap:8px;align-items:center}
.tp-count input{width:96px;padding:8px}
.tp-add{grid-template-columns:2fr 1fr 1fr 1fr}
.tp-add .full,.form-grid .full{grid-column:1/-1}
.tp-check{display:flex;gap:8px;align-items:center;font-weight:400}
.tp-gate p{margin:10px 0}
.tp-hero{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;margin-bottom:30px}
.tp-cups{width:220px;height:auto}
.tp-why{max-width:760px}
.tp-story{max-width:660px;margin:26px 0 10px}
.tp-story p{font-size:18px;line-height:1.65;color:#695442;margin:0 0 16px;overflow-wrap:anywhere}
.tp-hero-crew{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:48px}
.tp-hero-crew .tp-crew{margin:6px 0 0;position:sticky;top:24px}
.tp-crew-blurb{font-size:14px;line-height:1.45;color:#695442;max-width:230px}
.tp-team-note{margin-bottom:18px}
.tp-crew{margin:10px 0 34px}
.tp-crew h2{margin:0 0 18px}
.tp-crew-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:22px 18px}
.tp-crew-member{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;min-width:0}
.tp-crew-member img,.tp-crew-member svg{width:100%;max-width:200px;aspect-ratio:1;height:auto;object-fit:contain}
.tp-crew-member svg{padding:18px}
.tp-crew-name{font-family:'Playfair Display',Georgia,serif;font-size:22px;line-height:1.2;overflow-wrap:anywhere}
@media(max-width:760px){
  .tp-hero,.tp-hero-crew{grid-template-columns:1fr}
  .tp-hero-crew .tp-crew{position:static}
  /* On a phone the characters come right after the title, before the story. */
  .tp-hero-crew{display:flex;flex-direction:column;gap:0}
  .tp-hero-crew>div{display:contents}
  .tp-hero-crew .page-kicker{order:1}
  .tp-hero-crew .page-title{order:2}
  .tp-hero-crew .notice,.tp-hero-crew .tp-buttons{order:3}
  .tp-hero-crew .tp-crew{order:4;margin:6px 0 28px}
  .tp-hero-crew .tp-crew h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tp-hero-crew .tp-story,.tp-hero-crew .page-intro{order:5}
  .tp-cups{width:150px;order:-1}
  .tp-add{grid-template-columns:1fr 1fr}
  .tp-cards{grid-template-columns:minmax(0,1fr)}
  .tp-crew-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
  .tp-crew-name{font-size:19px}
}
