/* Team / firm modal: left nav + panels. Tokens match homepage (--navy, --gold, --paper). */
.tm-modal{position:fixed;inset:0;z-index:1200;background:rgba(20,19,15,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.tm-modal[hidden]{display:none}
.tm-dlg{position:relative;width:min(960px,100%);height:min(88vh,900px);max-height:min(88vh,900px);background:var(--paper,#fffdf8);border:1px solid var(--line,#e7e2d6);border-radius:22px;display:grid;grid-template-columns:220px minmax(0,1fr);overflow:hidden;color:var(--ink,#14130f)}
.tm-nav{background:#16243f;color:#f4f0e4;display:flex;flex-direction:column;padding:18px 12px 14px;min-height:0}
.tm-nav h2{font:700 13px Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#fce300;margin:0 10px 14px}
.tm-nav button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:inherit;font:600 14.5px Inter,sans-serif;text-align:left;cursor:pointer}
.tm-nav button:hover,.tm-nav button:focus-visible{background:rgba(255,255,255,.08);outline:0}
.tm-nav button[aria-current=page]{background:#1f3a89;color:#fff}
.tm-badge{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fce300;color:#14130f;font:700 11px Inter,sans-serif;display:inline-flex;align-items:center;justify-content:center}
.tm-body{min-height:0;overflow:auto;padding:22px 26px 28px;position:relative}
.tm-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}
.tm-top h1,.tm-body h1{font:700 26px/1.15 "Inter Tight",Inter,sans-serif;letter-spacing:-.02em;margin:0;display:flex;align-items:center;gap:8px}
.tm-top p{margin:6px 0 0;color:var(--ink2,#55524a);font-size:14.5px}
.tm-x{flex:none;width:40px;height:40px;border:0;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px var(--line,#e7e2d6);font:700 20px Inter,sans-serif;cursor:pointer;color:var(--ink,#14130f)}
.tm-x:hover{background:var(--cream,#f6f2e8)}
.tm-flash{background:#eef6ea;border:1px solid #cfe5c6;color:#285f1f;border-radius:12px;padding:10px 12px;font-size:14px;margin:0 0 16px}
.tm-flash.warn{background:#fff7e0;border-color:#f0dc9c;color:#6b5200}
.tm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}
.tm-tile{background:#fff;border:1px solid var(--line,#e7e2d6);border-radius:16px;padding:14px 16px;min-height:92px}
.tm-tile[data-jump]{cursor:pointer}
.tm-tile[data-jump]:hover{border-color:#cfc8b6;box-shadow:0 8px 18px rgba(20,19,15,.06)}
.tm-stack .tm-tile{margin-top:12px}
.tm-copy.tm-gap{margin-top:14px}
.tm-tile b{display:block;font:700 22px/1.15 "Inter Tight",Inter,sans-serif;letter-spacing:-.02em;margin:4px 0 2px}
.tm-k{font:600 11.5px Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--navy,#1f3a89)}
.tm-tile p,.tm-copy{margin:0;color:var(--ink2,#55524a);font-size:13.5px;line-height:1.45}
.tm-copy{max-width:52ch;margin:0 0 16px}
.tm-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--line,#e7e2d6);border-radius:14px;padding:12px 14px;background:#fff;margin:0 0 8px}
.tm-row span{display:block;color:var(--ink2,#55524a);font-size:13.5px;font-weight:500}
.tm-act{display:flex;gap:6px;flex-wrap:wrap}
.tm-act .btn{width:auto;margin:0;min-height:40px;padding:0 12px;font-size:13.5px}
.tm-form{display:grid;grid-template-columns:minmax(0,1fr) 140px auto;gap:10px;align-items:end;margin:12px 0 8px}
.tm-form.tm-seats{grid-template-columns:160px auto;max-width:420px}
.tm-form label{display:block;font-weight:600;font-size:14px}
.tm-form input,.tm-form select{display:block;width:100%;margin-top:6px;min-height:48px;padding:12px 16px;border:1px solid #d9d3c3;border-radius:14px;font:500 16px Inter,sans-serif;background:#fffdf8}
.tm-form .btn{width:auto;margin:0;min-height:48px}
.tm-form .tm-err{grid-column:1/-1;color:#b3261e;font-size:14px;min-height:18px}
.tm-form input[type=number]{-moz-appearance:textfield;appearance:textfield}
.tm-form input[type=number]::-webkit-outer-spin-button,
.tm-form input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.tm-i{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:6px;border:0;border-radius:50%;background:#1f3a89;color:#fff;font:700 11px Inter,sans-serif;cursor:help;vertical-align:middle;position:relative}
.tm-i:hover,.tm-i:focus-visible{background:#162b6a;outline:0}
.tm-bubble{position:absolute;z-index:2;max-width:280px;background:#14130f;color:#fffdf8;padding:10px 12px;border-radius:12px;font:500 13px/1.4 Inter,sans-serif;box-shadow:0 10px 24px rgba(20,19,15,.28);pointer-events:none}
.tm-bubble[hidden]{display:none}
.tm-empty .btn{width:auto}
@media (max-width:720px){
  .tm-dlg{grid-template-columns:1fr;height:min(92vh,900px);grid-template-rows:auto minmax(0,1fr)}
  .tm-nav{flex-direction:row;flex-wrap:wrap;overflow:visible;padding:10px;gap:4px}
  .tm-nav h2{display:none}
  .tm-nav button{width:auto;flex:none;white-space:nowrap;padding:0 12px}
  .tm-grid{grid-template-columns:1fr}
  .tm-form,.tm-form.tm-seats{grid-template-columns:1fr}
  .tm-form .btn{width:100%}
  .tm-row{flex-direction:column;align-items:flex-start}
}
