.tm{max-width:880px;margin:0 auto;padding:40px 20px 70px}
.tm h2{font-family:Oswald,sans-serif;font-size:1.5rem;margin:34px 0 10px}
.tm-test{background:#c62828;color:#fff;text-align:center;font-weight:600;padding:9px 12px}
.tm-top{display:grid;grid-template-columns:260px 1fr;gap:28px;align-items:start}
.tm-pic{background:#fff;border:1px solid var(--line);border-radius:6px;padding:10px}.tm-pic img{width:100%;display:block}
.tm-how{background:var(--paper);border-left:5px solid var(--red);padding:18px 22px;margin:0}
.tm-how h3{margin:0 0 8px;font-size:1.1rem}.tm-how ul{margin:0;padding-left:20px}.tm-how li{margin:6px 0}
.tm-bars{display:grid;gap:12px;margin:8px 0}
.tm-bar .lbl{display:flex;justify-content:space-between;font-weight:600;font-size:.95rem}.tm-bar .lbl small{font-weight:400;color:var(--muted)}
.tm-bar i{display:block;height:10px;background:#e6e3dc;border-radius:6px;margin-top:5px;overflow:hidden}.tm-bar i b{display:block;height:100%;background:var(--red)}.tm-bar.done i b{background:#2e8b47}
.tm-items{display:grid;gap:12px}
.tm-item{display:grid;grid-template-columns:1fr 150px 110px;gap:12px;align-items:end;border:1px solid var(--line);border-radius:6px;padding:14px 16px;background:#fff}
.tm-item h3{margin:0;font-size:1.05rem}.tm-item p{margin:2px 0 0;color:var(--muted);font-size:.9rem}
.tm select,.tm input{font:inherit;padding:11px 12px;border:1px solid #ccc;border-radius:3px;background:#fff;width:100%;box-sizing:border-box}
.tm label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.9rem}
.tm-total{display:flex;justify-content:space-between;font-family:Oswald,sans-serif;font-size:1.4rem;border-top:2px solid var(--ink);margin-top:18px;padding-top:12px}
.tm-sub{color:var(--muted);font-size:.92rem;margin:4px 0 0}
.tm .btn{border:0;cursor:pointer;font-size:1.05rem;margin-top:18px}
.tm .btn[disabled]{opacity:.6;cursor:default}
.tm-lines{list-style:none;padding:0;margin:0}.tm-lines li{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line)}
.tm-status{padding:16px 18px;border-left:5px solid var(--red);background:#eef4ff;font-weight:600;margin:0 0 20px}
.tm-status.ok{background:#eaf6ec;border-color:#2e8b47}.tm-status.warn{background:#fff4e5;border-color:var(--red)}.tm-status.err{background:#fdecec;border-color:#c62828}
.tm-status p{font-weight:400;margin:6px 0 0}
.tm-share{display:flex;gap:8px}.tm-share input{flex:1}.tm-share button{white-space:nowrap;margin:0!important}
.tm-table{width:100%;border-collapse:collapse;font-size:.92rem}.tm-table th,.tm-table td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:top}.tm-table th{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.tm-acts{display:flex;flex-wrap:wrap;gap:18px;align-items:end}.tm-acts form{display:flex;gap:8px;align-items:end}
.tm .ghost{background:#fff;border:1px solid #c9c6bf;color:var(--ink);padding:11px 16px;border-radius:3px;font:inherit;font-weight:600;cursor:pointer}
.tm .danger{color:#c62828;border-color:#e3b4b4}
.tm-err{color:#c62828;font-weight:600;min-height:1.2em}
#card-el{margin:14px 0}
@media(max-width:700px){.tm-top{grid-template-columns:1fr}.tm-pic{max-width:300px}.tm-item{grid-template-columns:1fr 1fr}.tm-item>div:first-child{grid-column:1/-1}.tm-grid{grid-template-columns:1fr!important}.tm-table .hide{display:none}}
.tm-edit td{background:var(--paper)}
.tm-edit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-bottom:12px}
.tm-edit-item{display:grid;gap:6px}.tm-edit-item b{font-size:.95rem}
.tm-edit-btn{padding:6px 12px;font-size:.85rem}

.pay-box .btn-link{display:inline-block;margin-top:14px;color:var(--red);font-weight:600}
.pay-box .note{color:var(--muted);font-size:13px;margin:12px 0 0;text-align:center}
.pay-box [data-element]{margin:6px 0 12px}
.pay-box [data-error]{color:#c62828;min-height:1em;margin:0 0 10px}
.pay-box button:disabled{opacity:.55;cursor:default}
.pay-box button{width:100%;border:0;border-radius:10px;padding:14px;background:var(--red);color:#fff;font:600 16px Inter,sans-serif;cursor:pointer}
.pay-box h2{font-family:Oswald,sans-serif;font-size:22px;margin:0 0 12px;color:var(--ink)}
.pay-box{max-width:560px;margin:-40px auto 70px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px 26px 22px;box-shadow:0 10px 30px rgba(11,26,51,.08);position:relative}
.pay-lines li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.pay-lines{list-style:none;margin:0 0 6px;padding:0}
.pay-total{display:flex;justify-content:space-between;font-weight:700;font-size:18px;padding:12px 0 18px}

/* Uniform set shown full width above "How this works" (Kyle 2026-10-26) */
.tm-top{grid-template-columns:1fr!important}.tm-pic{max-width:none!important;margin:0;padding:16px}.tm-pic h2{margin:0 0 10px;font-size:1.3rem}.tm-pic img{max-width:900px;margin:0 auto;cursor:zoom-in}.tm-pic figcaption{color:var(--muted);font-size:.9rem;text-align:center;margin-top:8px}.tm-pic[hidden]{display:none}

/* Ranked number choices (families: #1/#2/#3 + priority; organizer sheet: green/red final numbers) */
.tm-rank{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;grid-column:1/-1}
.tm-rank label{min-width:0}
.tm-rank input{width:100%;box-sizing:border-box}
@media (max-width:560px){.tm-rank{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rk-table td,.rk-table th{vertical-align:middle}
.rk-c{display:inline-block;min-width:2.2em;padding:2px 6px;border-radius:6px;text-align:center;color:#555}
.rk-c.hit{background:#dcfce7;color:#14532d;font-weight:700}
.rk-final input{width:4.5em;font-weight:700}
.rk-final.green input{background:#dcfce7;border-color:#16a34a;color:#14532d}
.rk-final.red input{background:#fee2e2;border-color:#dc2626}
.rk-final small{display:block;font-size:.75rem;margin-top:2px}
.rk-final.green small{color:#15803d}.rk-final.red small{color:#b91c1c}
.rk-yrs{width:3.5em}
.rk-give{font-size:.8rem;padding:4px 8px;white-space:nowrap}
.rk-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.rk-open{margin-top:18px;padding:14px;border:1px solid #e5e7eb;border-radius:10px}
.rk-open p{margin:4px 0 10px;word-break:break-word}
.rk-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:.85rem;margin:6px 0 10px}
.rk-legend span::before{content:"";display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.rk-legend .g::before{background:#dcfce7;border:1px solid #16a34a}.rk-legend .r::before{background:#fee2e2;border:1px solid #dc2626}
.rk-wrap{overflow-x:auto}
/* Team look (team-brand.js) */
.tm-brand .page-hero{border-bottom-color:var(--tm-hi,var(--red))}
.tm-brand .page-hero .eyebrow{color:var(--tm-hi,var(--red))}
.tm-hero{display:flex;align-items:center;gap:24px}
.tm-logo{width:96px;height:96px;object-fit:contain;background:#fff;border-radius:12px;padding:8px;flex:none;box-shadow:0 4px 16px rgba(0,0,0,.25)}
@media(max-width:600px){.tm-logo{width:64px;height:64px}.tm-hero{gap:14px}}
.tm-made{text-align:center;color:var(--muted);font-size:.85rem;margin:28px 0 0}
.tm-sizebtn{background:none;border:0;padding:0;font:inherit;color:var(--red);font-weight:700;text-decoration:underline;cursor:pointer}
.tm-flyer{font-weight:700;color:var(--red,#C8102E);text-decoration:underline}

/* Dealer stores (Savage TeamWear Direct, 2026-11-04): the dealer's logo and name in the hero */
.tm-dealer{margin-left:auto;display:flex;align-items:center;gap:10px;background:#fff;color:#14213d;border-radius:12px;padding:8px 14px 8px 8px;box-shadow:0 4px 16px rgba(0,0,0,.2);flex:none;max-width:280px}
.tm-dealer img{width:52px;height:52px;object-fit:contain}
.tm-dealer b{display:block;font-size:15px;line-height:1.2}.tm-dealer small{display:block;font-size:12px;color:#5b6475}
@media(max-width:700px){.tm-hero{flex-wrap:wrap}.tm-dealer{margin-left:0}}

.tm-pics-n{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;align-items:center}.tm-pics-n img{max-width:100%!important}

.tm-demo{background:#14213D;color:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 18px;padding:12px 16px;text-align:center;font-size:15px;line-height:1.45}
.tm-demo p{margin:0;max-width:900px}
.tm-demo a{color:#FFC72C;font-weight:600;white-space:nowrap}
.tm-demo a.tm-demo-go{background:#C8102E;color:#fff;border-radius:6px;padding:8px 14px;text-decoration:none}

.tm-demo-view{flex-basis:100%;display:flex;justify-content:center;margin-bottom:2px}
.tm-demo-view a{display:inline-block;padding:9px 18px;border:2px solid #FFC72C;color:#FFC72C;text-decoration:none;font-weight:700;font-size:14px;white-space:nowrap}
.tm-demo-view a:first-child{border-radius:999px 0 0 999px}
.tm-demo-view a:last-child{border-radius:0 999px 999px 0;border-left:0}
.tm-demo-view a.on{background:#FFC72C;color:#14213D}
.tm-demo-view a:not(.on):hover{background:rgba(255,199,44,.15)}
@media (max-width:480px){.tm-demo-view a{padding:8px 11px;font-size:13px}}
